|
lwIP 2.2.1
Lightweight IP stack
|
#include "lwip/opt.h"#include "lwip/etharp.h"#include "lwip/netifapi.h"#include "lwip/memp.h"#include "lwip/priv/tcpip_priv.h"#include <string.h>Functions | |
| err_t | netifapi_arp_add (const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type) |
| err_t | netifapi_arp_remove (const ip4_addr_t *ipaddr, enum netifapi_arp_entry type) |
| 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) |
| 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) |
Network Interface Sequential API module
| 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.