ReactOS 0.4.16-dev-527-gdad3a09
netif Struct Reference

#include <netif.h>

Collaboration diagram for netif:

Public Attributes

struct netifnext
 
netif_input_fn input
 
netif_linkoutput_fn linkoutput
 
voidstate
 
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 initialization function for the device driver: hwaddr_len, hwaddr[], mtu, flags

Definition at line 269 of file netif.h.

Member Data Documentation

◆ flags

◆ hwaddr

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 350 of file netif.h.

Referenced by lwip_tx_func(), netif_init(), TCPInterfaceInit(), and testif_init().

◆ hwaddr_len

u8_t netif::hwaddr_len

number of bytes used in hwaddr

Definition at line 352 of file netif.h.

Referenced by default_netif_init(), netif_init(), TCPInterfaceInit(), test_netif_init(), and testif_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.

Definition at line 297 of file netif.h.

Referenced by eth_rx_irq(), input_pkt(), main(), netif_add(), send_pkt(), 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.

Definition at line 308 of file netif.h.

Referenced by arpless_output(), default_netif_init(), netif_init(), test_netif_init(), and testif_init().

◆ mtu

u16_t netif::mtu

maximum transfer unit (in bytes)

Definition at line 344 of file netif.h.

Referenced by default_netif_init(), netif_add(), netif_init(), netif_set_link_down(), slipif_init(), TCPInterfaceInit(), test_netif_init(), and testif_init().

◆ name

char netif::name[2]

descriptive abbreviation

Definition at line 356 of file netif.h.

Referenced by main(), netif_add(), netif_find(), netif_index_to_name(), netif_set_default(), slipif_init(), TCPInterfaceInit(), and testif_init().

◆ next

struct netif* netif::next

pointer to next in linked list

Definition at line 272 of file netif.h.

Referenced by netif_add(), netif_remove(), test_mqtt_init_netif(), and test_tcp_init_netif().

◆ num

u8_t netif::num

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

Definition at line 359 of file netif.h.

Referenced by netif_add(), netif_find(), and START_TEST().

◆ state

void* netif::state

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

Definition at line 332 of file netif.h.

Referenced by netif_add(), slipif_init(), slipif_output(), slipif_poll(), slipif_rxbyte(), TCPInterfaceInit(), test_tcp_init_netif(), and test_tcp_netif_output().


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