32 #ifndef LWIP_HDR_NETIFAPI_H
33 #define LWIP_HDR_NETIFAPI_H
52 #if LWIP_ARP && LWIP_IPV4
54 enum netifapi_arp_entry {
60 err_t netifapi_arp_add(
const ip4_addr_t *ipaddr,
struct eth_addr *ethaddr,
enum netifapi_arp_entry type);
62 err_t netifapi_arp_remove(
const ip4_addr_t *ipaddr,
enum netifapi_arp_entry type);
67 const ip4_addr_t *ipaddr,
const ip4_addr_t *netmask,
const ip4_addr_t *gw,
72 err_t netifapi_netif_set_addr(
struct netif *
netif,
const ip4_addr_t *ipaddr,
73 const ip4_addr_t *netmask,
const ip4_addr_t *gw);
76 err_t netifapi_netif_common(
struct netif *
netif, netifapi_void_fn voidfunc,
77 netifapi_errt_fn errtfunc);
80 err_t netifapi_netif_name_to_index(
const char *name,
u8_t *index);
82 err_t netifapi_netif_index_to_name(
u8_t index,
char *name);
87 #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL)
91 #define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL)
95 #define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL)
99 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
103 #define netifapi_netif_set_link_up(n) netifapi_netif_common(n, netif_set_link_up, NULL)
107 #define netifapi_netif_set_link_down(n) netifapi_netif_common(n, netif_set_link_down, NULL)
117 #define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start)
122 #define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL)
126 #define netifapi_dhcp_inform(n) netifapi_netif_common(n, dhcp_inform, NULL)
130 #define netifapi_dhcp_renew(n) netifapi_netif_common(n, NULL, dhcp_renew)
135 #define netifapi_dhcp_release(n) netifapi_netif_common(n, NULL, dhcp_release)
139 #define netifapi_dhcp_release_and_stop(n) netifapi_netif_common(n, dhcp_release_and_stop, NULL)
149 #define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start)
153 #define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop)
uint8_t u8_t
Definition: arch.h:125
s8_t err_t
Definition: err.h:96
#define LWIP_IPV4
Definition: opt.h:727
err_t(* netif_init_fn)(struct netif *netif)
Definition: netif.h:168
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)
Definition: netif.h:178
Definition: ethernet.h:60