ip_current_netif is only used within LwIP.
 
Symbols
loading...
Files
loading...

ip_current_netif macro

Get the interface that accepted the current packet. This may or may not be the receiving netif, depending on your netif/network setup. This function must only be called from a receive callback (udp_recv,

Syntax

#define ip_current_netif() (ip_data.current_netif)

References

LocationText
ip.h:135
#define ip_current_netif() (ip_data.current_netif)
icmp.c:131
if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) {
tcp_in.c:153
if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) ||
udp.c:229
broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif());