The Pedigree Project  0.1
Public Attributes | List of all members
netif Struct Reference

#include <netif.h>

+ Collaboration diagram for netif:

Public Attributes

struct netifnext
 
netif_input_fn input
 
netif_linkoutput_fn linkoutput
 
void * state
 
u16_t mtu
 
u8_t hwaddr_len
 
u8_t hwaddr [NETIF_MAX_HWADDR_LEN]
 
u8_t flags
 
char name [2]
 
u8_t num
 

Detailed Description

Generic data structure used for all lwIP network interfaces. The following fields should be filled in by the initialization function for the device driver: hwaddr_len, hwaddr[], mtu, flags

Definition at line 244 of file netif.h.

Member Data Documentation

u8_t netif::flags
u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 322 of file netif.h.

Referenced by netif_set_link_down().

u8_t netif::hwaddr_len

number of bytes used in hwaddr

Definition at line 320 of file netif.h.

Referenced by netif_set_link_down().

netif_input_fn netif::input

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

Definition at line 263 of file netif.h.

Referenced by NetworkStack::executeRequest(), netif_add(), and slipif_poll().

netif_linkoutput_fn netif::linkoutput

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

Definition at line 274 of file netif.h.

u16_t netif::mtu

maximum transfer unit (in bytes)

Definition at line 318 of file netif.h.

Referenced by slipif_init().

char netif::name[2]

descriptive abbreviation

Definition at line 326 of file netif.h.

Referenced by netif_add(), netif_find(), netif_set_default(), netif_set_link_down(), NetworkStack::registerDevice(), and slipif_init().

struct netif* netif::next

pointer to next in linked list

Definition at line 246 of file netif.h.

Referenced by netif_add(), netif_find(), netif_remove(), and netif_set_link_down().

u8_t netif::num

number of this interface

Definition at line 328 of file netif.h.

Referenced by netif_add(), netif_find(), NetworkStack::registerDevice(), 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 298 of file netif.h.

Referenced by netif_add(), netif_set_link_down(), NMFaultHandler::NMFaultHandler(), slipif_init(), and slipif_poll().


The documentation for this struct was generated from the following file: