Mistake on this page?
Report an issue in GitHub or email us
Data Fields
netif Struct Reference

Generic data structure used for all lwIP network interfaces. More...

#include <netif.h>

Data Fields

void * service_ptr
 Pointer to PPP Service. More...
 
void * memory_manager
 Pointer to memory manager. More...
 
void * stream
 Pointer to memory stream. More...
 
netif_input_fn input
 This function is called by the PPP service to pass a packet up the TCP/IP stack. More...
 
void * state
 This field can be set by the PPP protocol and could point to state information for the protocol. More...
 
u16_t mtu
 maximum transfer unit (in bytes) More...
 
struct netifnext
 pointer to next in linked list More...
 
netif_linkoutput_fn linkoutput
 This function is called by ethernet_output() when it wants to send a packet on the interface. More...
 
u8_t hwaddr [6U]
 link level hardware address of this interface More...
 
u8_t hwaddr_len
 number of bytes used in hwaddr More...
 
u8_t flags
 flags ( More...
 
char name [2]
 descriptive abbreviation More...
 
u8_t num
 number of this interface. More...
 

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 157 of file ppp_service_if.h.

Field Documentation

u8_t flags

flags (

See also
Flags)

Definition at line 346 of file netif.h.

u8_t hwaddr[6U]

link level hardware address of this interface

Definition at line 342 of file netif.h.

u8_t hwaddr_len

number of bytes used in hwaddr

Definition at line 344 of file netif.h.

This function is called by the PPP service to pass a packet up the TCP/IP stack.

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

Definition at line 166 of file ppp_service_if.h.

netif_linkoutput_fn 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 300 of file netif.h.

void* memory_manager

Pointer to memory manager.

Definition at line 161 of file ppp_service_if.h.

u16_t mtu

maximum transfer unit (in bytes)

Definition at line 188 of file ppp_service_if.h.

char name[2]

descriptive abbreviation

Definition at line 348 of file netif.h.

struct netif* next

pointer to next in linked list

Definition at line 264 of file netif.h.

u8_t num

number of this interface.

Used for if_api and netifapi_netif, as well as for IPv6 zones

Definition at line 351 of file netif.h.

void* service_ptr

Pointer to PPP Service.

Definition at line 159 of file ppp_service_if.h.

void * state

This field can be set by the PPP protocol and could point to state information for the protocol.

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

Definition at line 186 of file ppp_service_if.h.

void* stream

Pointer to memory stream.

Definition at line 163 of file ppp_service_if.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.