45do_netifapi_netif_add(
struct netifapi_msg_msg *
msg)
53 msg->msg.add.input)) {
65do_netifapi_netif_set_addr(
struct netifapi_msg_msg *
msg)
80do_netifapi_netif_common(
struct netifapi_msg_msg *
msg)
82 if (
msg->msg.common.errtfunc !=
NULL) {
83 msg->err =
msg->msg.common.errtfunc(
msg->netif);
86 msg->msg.common.voidfunc(
msg->netif);
106 struct netifapi_msg
msg;
107 msg.function = do_netifapi_netif_add;
109 msg.msg.msg.add.ipaddr = ipaddr;
110 msg.msg.msg.add.netmask = netmask;
111 msg.msg.msg.add.gw = gw;
131 struct netifapi_msg
msg;
132 msg.function = do_netifapi_netif_set_addr;
134 msg.msg.msg.add.ipaddr = ipaddr;
135 msg.msg.msg.add.netmask = netmask;
136 msg.msg.msg.add.gw = gw;
148netifapi_netif_common(
struct netif *
netif, netifapi_void_fn voidfunc,
149 netifapi_errt_fn errtfunc)
151 struct netifapi_msg
msg;
152 msg.function = do_netifapi_netif_common;
154 msg.msg.msg.common.voidfunc = voidfunc;
155 msg.msg.msg.common.errtfunc = errtfunc;
#define TCPIP_NETIFAPI(m)
#define TCPIP_NETIFAPI_ACK(m)
GLenum GLenum GLenum input
typedefPACK_STRUCT_END struct ip_addr ip_addr_t
void netif_set_addr(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw)
struct netif * netif_add(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, ip_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input)
err_t(* netif_init_fn)(struct netif *netif)
err_t(* netif_input_fn)(struct pbuf *p, struct netif *inp)