32#ifndef LWIP_HDR_NETIFAPI_H
33#define LWIP_HDR_NETIFAPI_H
52#if LWIP_ARP && LWIP_IPV4
54enum netifapi_arp_entry {
60err_t netifapi_arp_add(
const ip4_addr_t *ipaddr,
struct eth_addr *ethaddr,
enum netifapi_arp_entry
type);
62err_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,
72err_t netifapi_netif_set_addr(
struct netif *
netif,
const ip4_addr_t *ipaddr,
73 const ip4_addr_t *netmask,
const ip4_addr_t *gw);
76err_t netifapi_netif_common(
struct netif *
netif, netifapi_void_fn voidfunc,
77 netifapi_errt_fn errtfunc);
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)
GLuint GLuint GLsizei GLenum type
GLenum GLenum GLenum input
err_t(* netif_init_fn)(struct netif *netif)
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)