Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

netif Struct Reference

#include <netif.h>

Collaboration diagram for netif:

[legend]

Data Fields

netifnext
ip_addr ip_addr
ip_addr netmask
ip_addr gw
err_t(* input )(struct pbuf *p, struct netif *inp)
err_t(* output )(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
err_t(* linkoutput )(struct netif *netif, struct pbuf *p)
void * state
unsigned char hwaddr_len
unsigned char hwaddr [NETIF_MAX_HWADDR_LEN]
u16_t mtu
char name [2]
u8_t num
u8_t flags

Detailed Description

generic data structure used for all lwIP network interfaces

Definition at line 61 of file netif.h.


Field Documentation

u8_t netif::flags
 

NETIF_FLAG_*

Definition at line 102 of file netif.h.

Referenced by dhcp_start().

struct ip_addr netif::gw
 

Definition at line 70 of file netif.h.

Referenced by etharp_output(), and netif_set_gw().

unsigned char netif::hwaddr[NETIF_MAX_HWADDR_LEN]
 

link level hardware address of this interface

Definition at line 94 of file netif.h.

Referenced by dhcp_create_request(), dhcp_recv(), etharp_output(), etharp_query(), rt_3c905cif_init(), and rt_rtl8139if_init().

unsigned char netif::hwaddr_len
 

number of bytes used in hwaddr

Definition at line 92 of file netif.h.

Referenced by dhcp_create_request(), dhcp_recv(), etharp_arp_input(), etharp_output(), etharp_query(), rt_3c905cif_init(), rt_rtl8139if_init(), and update_arp_entry().

err_t(* netif::input)(struct pbuf *p, struct netif *inp)
 

This function is called by the network device driver to pass a packet up the TCP/IP stack.

Referenced by loopif_output(), netif_add(), rt_3c905cif_input(), and rt_rtl8139if_input().

struct ip_addr netif::ip_addr
 

IP address configuration in network byte order

Definition at line 68 of file netif.h.

Referenced by arp_arp_input(), arp_ip_input(), arp_query(), dhcp_create_request(), etharp_arp_input(), etharp_ip_input(), etharp_output(), etharp_query(), ip_output_if(), netif_set_ipaddr(), rt_3com905cif_low_level_init(), and rt_rtl8139if_low_level_init().

err_t(* netif::linkoutput)(struct netif *netif, struct pbuf *p)
 

This function is called by the ARP module when it wants to send a packet on the interface. This function outputs the pbuf as-is on the link medium.

Referenced by etharp_arp_input(), etharp_query(), rt_3c905cif_init(), rt_rtl8139if_init(), and update_arp_entry().

u16_t netif::mtu
 

maximum transfer unit (in bytes)

Definition at line 96 of file netif.h.

Referenced by ip_frag(), ip_output_if(), and slipif_init().

char netif::name[2]
 

descriptive abbreviation

Definition at line 98 of file netif.h.

Referenced by dhcp_start(), ip_output_if(), loopif_init(), netif_set_gw(), netif_set_ipaddr(), netif_set_netmask(), rt_3c905cif_init(), rt_rtl8139if_init(), and slipif_init().

struct ip_addr netif::netmask
 

Definition at line 69 of file netif.h.

Referenced by arp_ip_input(), etharp_ip_input(), etharp_output(), icmp_input(), ip_input(), and netif_set_netmask().

struct netif* netif::next
 

pointer to next in linked list

Definition at line 63 of file netif.h.

Referenced by netif_add(), and netif_remove().

u8_t netif::num
 

number of this interface

Definition at line 100 of file netif.h.

Referenced by dhcp_start(), ip_output_if(), netif_add(), netif_set_gw(), netif_set_ipaddr(), netif_set_netmask(), and slipif_init().

err_t(* netif::output)(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
 

This function is called by the IP module when it wants to send a packet on the interface. This function typically first resolves the hardware address, then sends the packet.

Referenced by ip_frag(), ip_output_if(), loopif_init(), rt_3c905cif_init(), rt_rtl8139if_init(), and slipif_init().

void* netif::state
 

This field can be set by the device driver and could point to state information for the device.

Definition at line 86 of file netif.h.

Referenced by netif_add(), rt_3c905cif_init(), rt_3c905cif_input(), rt_3com905cif_low_level_init(), rt_rtl8139if_init(), rt_rtl8139if_input(), rt_rtl8139if_low_level_init(), slipif_init(), slipif_input(), and slipif_output().


The documentation for this struct was generated from the following file:
Generated on Wed Jan 14 12:59:17 2004 for RTL-lwIP-0.4 by doxygen 1.3.4