32 #ifndef LWIP_HDR_NETIFAPI_H
33 #define LWIP_HDR_NETIFAPI_H
49 #if LWIP_MPU_COMPATIBLE
50 #define NETIFAPI_IPADDR_DEF(type, m) type m
52 #define NETIFAPI_IPADDR_DEF(type, m) const type * m
64 NETIFAPI_IPADDR_DEF(ip4_addr_t,
ipaddr);
65 NETIFAPI_IPADDR_DEF(ip4_addr_t,
netmask);
66 NETIFAPI_IPADDR_DEF(ip4_addr_t,
gw);
73 netifapi_void_fn voidfunc;
74 netifapi_errt_fn errtfunc;
83 const ip4_addr_t *
ipaddr,
const ip4_addr_t *
netmask,
const ip4_addr_t *
gw,
89 const ip4_addr_t *
netmask,
const ip4_addr_t *
gw);
92 err_t netifapi_netif_common(
struct netif *
netif, netifapi_void_fn voidfunc,
93 netifapi_errt_fn errtfunc);
96 #define netifapi_netif_remove(n) netifapi_netif_common(n, netif_remove, NULL)
98 #define netifapi_netif_set_up(n) netifapi_netif_common(n, netif_set_up, NULL)
100 #define netifapi_netif_set_down(n) netifapi_netif_common(n, netif_set_down, NULL)
102 #define netifapi_netif_set_default(n) netifapi_netif_common(n, netif_set_default, NULL)
104 #define netifapi_netif_set_link_up(n) netifapi_netif_common(n, netif_set_link_up, NULL)
106 #define netifapi_netif_set_link_down(n) netifapi_netif_common(n, netif_set_link_down, NULL)
114 #define netifapi_dhcp_start(n) netifapi_netif_common(n, NULL, dhcp_start)
116 #define netifapi_dhcp_stop(n) netifapi_netif_common(n, dhcp_stop, NULL)
118 #define netifapi_dhcp_inform(n) netifapi_netif_common(n, dhcp_inform, NULL)
120 #define netifapi_dhcp_renew(n) netifapi_netif_common(n, NULL, dhcp_renew)
122 #define netifapi_dhcp_release(n) netifapi_netif_common(n, NULL, dhcp_release)
130 #define netifapi_autoip_start(n) netifapi_netif_common(n, NULL, autoip_start)
132 #define netifapi_autoip_stop(n) netifapi_netif_common(n, NULL, autoip_stop)