ifnet Struct Reference

Structure defining a queue for a network interface. More...

#include <if.h>


Data Fields

char * if_name
 name, e.g. ``en'' or ``lo''
short if_unit
 sub-unit for device driver
short if_mtu
 maximum transmission unit
short if_flags
 up/down, broadcast, etc.
short if_timer
 time 'til if_watchdog called
int if_metric
 routing metric (not used)
ifaddrif_addrlist
 linked list of addrs per if
ifnet::ifqueue if_snd
 output queue
int(* if_init )()
 Procedure handles. init routine.
int(* if_output )()
 output routine
int(* if_ioctl )()
 ioctl routine
int(* if_reset )()
 bus reset routine
int(* if_watchdog )()
 timer routine
int if_ipackets
 Generic interface statistics. packets recv'd on interface.
int if_ierrors
 input errors on interface
int if_opackets
 packets sent on interface
int if_oerrors
 output errors on interface
int if_collisions
 collisions on CSMA i'faces
ifnetif_next
 Linked list: pointer to next interface.

Data Structures

struct  ifqueue


Detailed Description

Structure defining a queue for a network interface.

INET An implementation of the TCP/IP protocol suite for the LINUX operating system. INET is implemented using the BSD Socket interface as the means of communication with the user level.

Global definitions for the INET interface module.

Version: @(#)if.h 1.0.2 04/18/93

Authors: Original taken from Berkeley UNIX 4.3, (c) UCB 1982-1988 Ross Biro, <bir7@leland.Stanford.Edu> Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Definition at line 31 of file if.h.


Field Documentation

struct ifaddr* ifnet::if_addrlist

linked list of addrs per if

Definition at line 38 of file if.h.

int ifnet::if_collisions

collisions on CSMA i'faces

Definition at line 61 of file if.h.

short ifnet::if_flags

up/down, broadcast, etc.

Definition at line 35 of file if.h.

int ifnet::if_ierrors

input errors on interface

Definition at line 58 of file if.h.

int(* ifnet::if_init)()

Procedure handles. init routine.

int(* ifnet::if_ioctl)()

ioctl routine

int ifnet::if_ipackets

Generic interface statistics. packets recv'd on interface.

Definition at line 57 of file if.h.

int ifnet::if_metric

routing metric (not used)

Definition at line 37 of file if.h.

short ifnet::if_mtu

maximum transmission unit

Definition at line 34 of file if.h.

char* ifnet::if_name

name, e.g. ``en'' or ``lo''

Definition at line 32 of file if.h.

struct ifnet* ifnet::if_next

Linked list: pointer to next interface.

Definition at line 64 of file if.h.

int ifnet::if_oerrors

output errors on interface

Definition at line 60 of file if.h.

int ifnet::if_opackets

packets sent on interface

Definition at line 59 of file if.h.

int(* ifnet::if_output)()

output routine

int(* ifnet::if_reset)()

bus reset routine

struct ifnet::ifqueue ifnet::if_snd

output queue

short ifnet::if_timer

time 'til if_watchdog called

Definition at line 36 of file if.h.

short ifnet::if_unit

sub-unit for device driver

Definition at line 33 of file if.h.

int(* ifnet::if_watchdog)()

timer routine


The documentation for this struct was generated from the following file:
Generated on Mon May 1 21:47:03 2006 for KernelAPI by  doxygen 1.4.6-5