Mistake on this page?
Report an issue in GitHub or email us
Macros
Loopback interface

Macros

#define LWIP_HAVE_LOOPIF   (LWIP_NETIF_LOOPBACK && !LWIP_SINGLE_NETIF)
 LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1). More...
 
#define LWIP_LOOPIF_MULTICAST   0
 LWIP_LOOPIF_MULTICAST==1: Support multicast/IGMP on loop interface (127.0.0.1). More...
 
#define LWIP_NETIF_LOOPBACK   0
 LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP address equal to the netif IP address, looping them back up the stack. More...
 
#define LWIP_LOOPBACK_MAX_PBUFS   0
 LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback sending for each netif (0 = disabled) More...
 
#define LWIP_NETIF_LOOPBACK_MULTITHREADING   (!NO_SYS)
 LWIP_NETIF_LOOPBACK_MULTITHREADING: Indicates whether threading is enabled in the system, as netifs must change how they behave depending on this setting for the LWIP_NETIF_LOOPBACK option to work. More...
 

Detailed Description

Macro Definition Documentation

#define LWIP_HAVE_LOOPIF   (LWIP_NETIF_LOOPBACK && !LWIP_SINGLE_NETIF)

LWIP_HAVE_LOOPIF==1: Support loop interface (127.0.0.1).

This is only needed when no real netifs are available. If at least one other netif is available, loopback traffic uses this netif.

Definition at line 1688 of file opt.h.

#define LWIP_LOOPBACK_MAX_PBUFS   0

LWIP_LOOPBACK_MAX_PBUFS: Maximum number of pbufs on queue for loopback sending for each netif (0 = disabled)

Definition at line 1711 of file opt.h.

#define LWIP_LOOPIF_MULTICAST   0

LWIP_LOOPIF_MULTICAST==1: Support multicast/IGMP on loop interface (127.0.0.1).

Definition at line 1695 of file opt.h.

#define LWIP_NETIF_LOOPBACK   0

LWIP_NETIF_LOOPBACK==1: Support sending packets with a destination IP address equal to the netif IP address, looping them back up the stack.

Definition at line 1703 of file opt.h.

#define LWIP_NETIF_LOOPBACK_MULTITHREADING   (!NO_SYS)

LWIP_NETIF_LOOPBACK_MULTITHREADING: Indicates whether threading is enabled in the system, as netifs must change how they behave depending on this setting for the LWIP_NETIF_LOOPBACK option to work.

Setting this is needed to avoid reentering non-reentrant functions like tcp_input(). LWIP_NETIF_LOOPBACK_MULTITHREADING==1: Indicates that the user is using a multithreaded environment like tcpip.c. In this case, netif->input() is called directly. LWIP_NETIF_LOOPBACK_MULTITHREADING==0: Indicates a polling (or NO_SYS) setup. The packets are put on a list and netif_poll() must be called in the main application loop.

Definition at line 1728 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.