Rtos API example

Embed: (wiki syntax)

« Back to documentation index

NETIF related

NETIF related
[NETIF API]

To be called from non-TCPIP threads. More...

Functions

err_t netifapi_netif_add (struct netif *netif,#if LWIP_IPV4 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw,#endifvoid *state, netif_init_fn init, netif_input_fn input)
 Call netif_add() in a thread-safe way by running that function inside the tcpip_thread context.
err_t netifapi_netif_set_addr (struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw)
 Call netif_set_addr() in a thread-safe way by running that function inside the tcpip_thread context.

Detailed Description

To be called from non-TCPIP threads.


Function Documentation

err_t netifapi_netif_add ( struct netif netif,
#if LWIP_IPV4 const ip4_addr_t ipaddr,
const ip4_addr_t netmask,
const ip4_addr_t gw,
#endif void *  state,
netif_init_fn  init,
netif_input_fn  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 125 of file lwip_netifapi.c.

err_t netifapi_netif_set_addr ( struct netif netif,
const ip4_addr_t ipaddr,
const ip4_addr_t netmask,
const ip4_addr_t gw 
)

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

Note:
for params
See also:
netif_set_addr()

Definition at line 170 of file lwip_netifapi.c.