ifnet Struct Reference
[IP]

Collaboration diagram for ifnet:

Collaboration graph
[legend]

Detailed Description

Network interface structure.

Contains information about the network interface.

Definition at line 179 of file if_var.h.


Data Fields

uint8_t if_type
 Interface type. Either IFT_ETHER or IFT_PPP.
uint8_t if_mac [6]
 Hardware net address.
uint32_t if_local_ip
 IP address.
uint32_t if_remote_ip
 Remote IP address for point to point.
uint32_t if_mask
 IP network mask.
uint16_t if_mtu
 Maximum size of a transmission unit.
uint16_t 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 *, uint16_t, uint8_t *, NETBUF *)
 Media output routine.
int(* if_ioctl )(NUTDEVICE *, int, void *)
 Interface specific control function.

Field Documentation

Interface type. Either IFT_ETHER or IFT_PPP.

Definition at line 180 of file if_var.h.

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

Remote IP address for point to point.

Definition at line 185 of file if_var.h.

IP network mask.

Definition at line 186 of file if_var.h.

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

Maximum size of a transmission unit.

Definition at line 187 of file if_var.h.

Packet identifier.

Definition at line 188 of file if_var.h.

Referenced by NutIpOutput().

Linked list of arp entries.

Definition at line 189 of file if_var.h.

Linked list of multicast address entries.

Definition at line 190 of file if_var.h.

Referenced by NutIpInput().

Receive routine.

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

Send routine.

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

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/