ifnet Struct Reference
[IPIP]

Collaboration diagram for ifnet:

Collaboration graph
[legend]

Detailed Description

Network interface structure.

Contains information about the network interface.

Definition at line 174 of file if_var.h.


Data Fields

u_char if_type
 Interface type. Either IFT_ETHER or IFT_PPP.
u_char if_mac [6]
 Hardware net address.
u_long if_local_ip
 IP address.
u_long if_remote_ip
 Remote IP address for point to point.
u_long if_mask
 IP network mask.
u_short if_mtu
 Maximum size of a transmission unit.
u_short if_pkt_id
 Packet identifier.
ARPENTRYarpTable
 Linked list of arp entries.
MCASTENTRYif_mcast
 Linked list of multicast address entries.
void(* if_recv )(NUTDEVICE *, NETBUF *)
 Receive routine.
int(* if_send )(NUTDEVICE *, NETBUF *)
 Send routine.
int(* if_output )(NUTDEVICE *, u_short, u_char *, NETBUF *)
 Media output routine.
int(* if_ioctl )(NUTDEVICE *, int, void *)
 Interface specific control function.

Field Documentation

u_char ifnet::if_type

Interface type. Either IFT_ETHER or IFT_PPP.

Definition at line 175 of file if_var.h.

Referenced by NutDhcpIfConfig(), NutIpOutput(), and NutNetIfConfig2().

u_char ifnet::if_mac[6]

Hardware net address.

Definition at line 178 of file if_var.h.

Referenced by cs8900Init(), CSNicInit(), EmacRxThread(), NicInit(), NicRx(), NicRxAsix(), NicRxLanc(), NutArpOutput(), NutDhcpClient(), NutDhcpIfConfig(), NutEtherOutput(), NutNetIfConfig2(), and NutNetIfSetup().

u_long ifnet::if_local_ip

IP address.

Definition at line 179 of file if_var.h.

Referenced by NutArpInput(), NutArpOutput(), NutDhcpClient(), NutDhcpIfConfig(), NutIpInput(), NutIpOutput(), NutNetIfSetup(), NutTcpConnect(), and NutUdpOutput().

u_long ifnet::if_remote_ip

Remote IP address for point to point.

Definition at line 180 of file if_var.h.

u_long ifnet::if_mask

IP network mask.

Definition at line 181 of file if_var.h.

Referenced by NutIpInput(), NutIpOutput(), and NutNetIfSetup().

u_short ifnet::if_mtu

Maximum size of a transmission unit.

Definition at line 182 of file if_var.h.

u_short ifnet::if_pkt_id

Packet identifier.

Definition at line 183 of file if_var.h.

Referenced by NutIpOutput().

ARPENTRY* ifnet::arpTable

Linked list of arp entries.

Definition at line 184 of file if_var.h.

MCASTENTRY* ifnet::if_mcast

Linked list of multicast address entries.

Definition at line 185 of file if_var.h.

Referenced by NutIpInput().

void(* ifnet::if_recv)(NUTDEVICE *, NETBUF *)

Receive routine.

Referenced by AhdlcRx(), CSNICrx(), EmacRxThread(), NicRx(), NicRxAsix(), NicRxLanc(), and RxThread().

int(* ifnet::if_send)(NUTDEVICE *, NETBUF *)

Send routine.

Referenced by AhdlcRx(), NutEtherOutput(), and NutPppOutput().

int(* ifnet::if_output)(NUTDEVICE *, u_short, u_char *, NETBUF *)

Media output routine.

Referenced by NutArpOutput(), and NutIpOutput().

int(* ifnet::if_ioctl)(NUTDEVICE *, int, void *)

Interface specific control function.


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/