Mistake on this page?
Report an issue in GitHub or email us
Modules | Macros

Modules

 Loopback interface
 

Macros

#define LWIP_SINGLE_NETIF   0
 LWIP_SINGLE_NETIF==1: use a single netif only. More...
 
#define LWIP_NETIF_HOSTNAME   0
 LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname field. More...
 
#define LWIP_NETIF_API   0
 LWIP_NETIF_API==1: Support netif api (in netifapi.c) More...
 
#define LWIP_NETIF_STATUS_CALLBACK   0
 LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface changes its up/down status (i.e., due to DHCP IP acquisition) More...
 
#define LWIP_NETIF_EXT_STATUS_CALLBACK   0
 LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support an extended callback function for several netif related event that supports multiple subscribers. More...
 
#define LWIP_NETIF_LINK_CALLBACK   0
 LWIP_NETIF_LINK_CALLBACK==1: Support a callback function from an interface whenever the link changes (i.e., link down) More...
 
#define LWIP_NETIF_REMOVE_CALLBACK   0
 LWIP_NETIF_REMOVE_CALLBACK==1: Support a callback function that is called when a netif has been removed. More...
 
#define LWIP_NETIF_HWADDRHINT   0
 LWIP_NETIF_HWADDRHINT==1: Cache link-layer-address hints (e.g. More...
 
#define LWIP_NETIF_TX_SINGLE_PBUF   0
 LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP tries to put all data to be sent into one single pbuf. More...
 
#define LWIP_NUM_NETIF_CLIENT_DATA   0
 LWIP_NUM_NETIF_CLIENT_DATA: Number of clients that may store data in client_data member array of struct netif (max. More...
 

Detailed Description

Macro Definition Documentation

#define LWIP_NETIF_API   0

LWIP_NETIF_API==1: Support netif api (in netifapi.c)

Definition at line 1592 of file opt.h.

#define LWIP_NETIF_EXT_STATUS_CALLBACK   0

LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support an extended callback function for several netif related event that supports multiple subscribers.

See also
netif_ext_status_callback

Definition at line 1609 of file opt.h.

#define LWIP_NETIF_HOSTNAME   0

LWIP_NETIF_HOSTNAME==1: use DHCP_OPTION_HOSTNAME with netif's hostname field.

Definition at line 1585 of file opt.h.

#define LWIP_NETIF_HWADDRHINT   0

LWIP_NETIF_HWADDRHINT==1: Cache link-layer-address hints (e.g.

table indices) in struct netif. TCP and UDP can make use of this to prevent scanning the ARP table for every sent packet. While this is faster for big ARP tables or many concurrent connections, it might be counterproductive if you have a tiny ARP table or if there never are concurrent connections.

Definition at line 1636 of file opt.h.

#define LWIP_NETIF_LINK_CALLBACK   0

LWIP_NETIF_LINK_CALLBACK==1: Support a callback function from an interface whenever the link changes (i.e., link down)

Definition at line 1617 of file opt.h.

#define LWIP_NETIF_REMOVE_CALLBACK   0

LWIP_NETIF_REMOVE_CALLBACK==1: Support a callback function that is called when a netif has been removed.

Definition at line 1625 of file opt.h.

#define LWIP_NETIF_STATUS_CALLBACK   0

LWIP_NETIF_STATUS_CALLBACK==1: Support a callback function whenever an interface changes its up/down status (i.e., due to DHCP IP acquisition)

Definition at line 1600 of file opt.h.

#define LWIP_NETIF_TX_SINGLE_PBUF   0

LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP tries to put all data to be sent into one single pbuf.

This is for compatibility with DMA-enabled MACs that do not support scatter-gather. Beware that this might involve CPU-memcpy before transmitting that would not be needed without this flag! Use this only if you need to!

ATTENTION: a driver should NOT rely on getting single pbufs but check TX pbufs for being in one piece. If not, pbuf_clone can be used to get a single pbuf: if (p->next != NULL) { struct pbuf *q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); if (q == NULL) { return ERR_MEM; } p = q; ATTENTION: do NOT free the old 'p' as the ref belongs to the caller! }

Definition at line 1658 of file opt.h.

#define LWIP_NUM_NETIF_CLIENT_DATA   0

LWIP_NUM_NETIF_CLIENT_DATA: Number of clients that may store data in client_data member array of struct netif (max.

256).

Definition at line 1666 of file opt.h.

#define LWIP_SINGLE_NETIF   0

LWIP_SINGLE_NETIF==1: use a single netif only.

This is the common case for small real-life targets. Some code like routing etc. can be left out.

Definition at line 1577 of file opt.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.