|
lwIP 2.2.1
Lightweight IP stack
|
Macros | |
| #define | netifapi_netif_remove(n) |
| #define | netifapi_netif_set_up(n) |
| #define | netifapi_netif_set_down(n) |
| #define | netifapi_netif_set_default(n) |
| #define | netifapi_netif_set_link_up(n) |
| #define | netifapi_netif_set_link_down(n) |
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_name_to_index (const char *name, u8_t *idx) |
| err_t | netifapi_netif_index_to_name (u8_t idx, char *name) |
To be called from non-TCPIP threads
| #define netifapi_netif_remove | ( | n | ) |
| #define netifapi_netif_set_default | ( | n | ) |
| #define netifapi_netif_set_down | ( | n | ) |
| #define netifapi_netif_set_link_down | ( | n | ) |
| #define netifapi_netif_set_link_up | ( | n | ) |
| #define netifapi_netif_set_up | ( | n | ) |
| 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_index_to_name | ( | u8_t | idx, |
| char * | name ) |
Call netif_index_to_name() in a thread-safe way by running that function inside the tcpip_thread context.
| idx | the interface index of the netif |
| name | output name of the found netif, empty '\0' string if netif not found. name should be of at least NETIF_NAMESIZE bytes |
| err_t netifapi_netif_name_to_index | ( | const char * | name, |
| u8_t * | idx ) |
Call netif_name_to_index() in a thread-safe way by running that function inside the tcpip_thread context.
| name | the interface name of the netif |
| idx | output index of the found netif |
| 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.