lwIP  2.0.2
Lightweight IP stack
netifapi.c File Reference
#include "lwip/opt.h"
#include "lwip/netifapi.h"
#include "lwip/memp.h"
#include "lwip/priv/tcpip_priv.h"

Functions

err_t netifapi_netif_add (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input)
 
err_t netifapi_netif_set_addr (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw)
 
err_t netifapi_netif_common (struct netif *netif, netifapi_void_fn voidfunc, netifapi_errt_fn errtfunc)
 

Detailed Description

Network Interface Sequential API module

Function Documentation

◆ netifapi_netif_common()

err_t netifapi_netif_common ( struct netif netif,
netifapi_void_fn  voidfunc,
netifapi_errt_fn  errtfunc 
)

call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) in a thread-safe way by running that function inside the tcpip_thread context.

Note
use only for functions where there is only "netif" parameter.