lwIP
2.0.2
Lightweight IP stack
|
Macros | |
#define | netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL) |
#define | netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL) |
#define | netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL) |
#define | netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL) |
#define | netifapi_netif_set_link_up(n) netifapi_netif_common(n, netif_set_link_up, NULL) |
#define | netifapi_netif_set_link_down(n) netifapi_netif_common(n, netif_set_link_down, NULL) |
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) |
To be called from non-TCPIP threads
#define netifapi_netif_remove | ( | n | ) | netifapi_netif_common(n, netif_remove, NULL) |
#define netifapi_netif_set_default | ( | n | ) | netifapi_netif_common(n, netif_set_default, NULL) |
#define netifapi_netif_set_down | ( | n | ) | netifapi_netif_common(n, netif_set_down, NULL) |
#define netifapi_netif_set_link_down | ( | n | ) | netifapi_netif_common(n, netif_set_link_down, NULL) |
#define netifapi_netif_set_link_up | ( | n | ) | netifapi_netif_common(n, netif_set_link_up, NULL) |
#define netifapi_netif_set_up | ( | n | ) | netifapi_netif_common(n, netif_set_up, NULL) |
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 | ||
) |
Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context.
err_t netifapi_netif_set_addr | ( | struct netif * | netif, |
const ip4_addr_t * | ipaddr, | ||
const ip4_addr_t * | netmask, | ||
const ip4_addr_t * | gw | ||
) |
Call netif_set_addr() in a thread-safe way by running that function inside the tcpip_thread context.