ConOpSys V2970  P004.07
ANVILEX control operating system
Public Attributes | List of all members
netif Struct Reference

#include <netif.h>

Collaboration diagram for netif:
Collaboration graph

Public Attributes

struct netifnext
 
netif_input_fn input
 
netif_linkoutput_fn linkoutput
 
void * state
 
u16_t mtu
 
u8_t hwaddr [NETIF_MAX_HWADDR_LEN]
 
u8_t 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 initialisation function for the device driver: hwaddr_len, hwaddr[], mtu, flags

Member Data Documentation

◆ flags

u8_t netif::flags

◆ hwaddr

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Referenced by low_level_init().

◆ hwaddr_len

u8_t netif::hwaddr_len

number of bytes used in hwaddr

Referenced by low_level_init().

◆ input

netif_input_fn netif::input

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

Referenced by ethernetif_input(), netif_add(), netif_add_noaddr(), slipif_init(), and slipif_rxbyte_input().

◆ linkoutput

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.

Referenced by ethernetif_init().

◆ mtu

u16_t netif::mtu

maximum transfer unit (in bytes)

Referenced by low_level_init(), netif_add(), and slipif_init().

◆ name

char netif::name[2]

◆ next

struct netif* netif::next

pointer to next in linked list

Referenced by netif_add(), and netif_remove().

◆ num

u8_t netif::num

number of this interface. Used for Interface Identification API and NETIF related, as well as for IPv6 zones

Referenced by netif_add(), and netif_find().

◆ state

void* netif::state

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

Referenced by netif_add(), netif_add_noaddr(), slipif_init(), slipif_output(), slipif_poll(), and slipif_rxbyte().


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