lwIP 2.0.0
lwIP 2.0.0
LightweightIPstack
|
#include "lwip/opt.h"
#include "lwip/sys.h"
#include "lwip/netif.h"
#include "lwip/dhcp.h"
#include "lwip/autoip.h"
#include "lwip/priv/tcpip_priv.h"
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_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start) |
#define | netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL) |
#define | netifapi_dhcp_inform(n) netifapi_netif_common(n, dhcp_inform, NULL) |
#define | netifapi_dhcp_renew(n) netifapi_netif_common(n, NULL, dhcp_renew) |
#define | netifapi_dhcp_release(n) netifapi_netif_common(n, NULL, dhcp_release) |
#define | netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start) |
#define | netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop) |
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) |
netif API (to be used from non-TCPIP threads)
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.