A version of LWIP, provided for backwards compatibility.

Dependents:   AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more

Embed: (wiki syntax)

« Back to documentation index

netifapi.c File Reference

netifapi.c File Reference

Network Interface Sequential API module. More...

Go to the source code of this file.

Functions

void do_netifapi_netif_add (struct netifapi_msg_msg *msg)
 Call netif_add() inside the tcpip_thread context.
void do_netifapi_netif_common (struct netifapi_msg_msg *msg)
 Call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) inside the tcpip_thread context.
err_t netifapi_netif_add (struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw, void *state, err_t(*init)(struct netif *netif), err_t(*input)(struct pbuf *p, struct netif *netif))
 Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context.
err_t netifapi_netif_common (struct netif *netif, void(*voidfunc)(struct netif *netif), err_t(*errtfunc)(struct netif *netif))
 call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) in a thread-safe way by running that function inside the tcpip_thread context.

Detailed Description

Network Interface Sequential API module.

Definition in file 7/Core/lwIP/api/netifapi.c.


Function Documentation

void do_netifapi_netif_add ( struct netifapi_msg_msg *  msg )

Call netif_add() inside the tcpip_thread context.

Definition at line 45 of file 7/Core/lwIP/api/netifapi.c.

void do_netifapi_netif_common ( struct netifapi_msg_msg *  msg )

Call the "errtfunc" (or the "voidfunc" if "errtfunc" is NULL) inside the tcpip_thread context.

Definition at line 66 of file 7/Core/lwIP/api/netifapi.c.

err_t netifapi_netif_add ( struct netif netif,
struct ip_addr *  ipaddr,
struct ip_addr *  netmask,
struct ip_addr *  gw,
void *  state,
err_t(*)(struct netif *netif init,
err_t(*)(struct pbuf *p, struct netif *netif input 
)

Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context.

Note:
for params
See also:
netif_add()

Definition at line 85 of file 7/Core/lwIP/api/netifapi.c.

err_t netifapi_netif_common ( struct netif netif,
void(*)(struct netif *netif voidfunc,
err_t(*)(struct netif *netif 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.

Note:
use only for functions where there is only "netif" parameter.

Definition at line 113 of file 7/Core/lwIP/api/netifapi.c.