#include <net/if_var.h>
Collaboration diagram for ifnet:

Contains information about the network interface.
Data Fields | |
| u_char | if_type |
| Interface type. | |
| 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. | |
| ARPENTRY * | arpTable |
| Linked list of arp 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. | |
|
|
Interface type. Either IFT_ETHER or IFT_PPP. |