Loading...
Searching...
No Matches

Helpers for simplified network setup. More...

Detailed Description

Helpers for simplified network setup.

Author
Erik Ekman eekma.nosp@m.n@go.nosp@m.ogle..nosp@m.com

Definition in file lwip_init_devs.h.

#include "lwip/netif/compat.h"
#include "net/netdev.h"
#include "xfa.h"
+ Include dependency graph for lwip_init_devs.h:

Go to the source code of this file.

#define LWIP_INIT_ETH_NETIF(func)
 Registers initialization function for an Ethernet interface.
 
#define LWIP_INIT_6LOWPAN_NETIF(func)
 Registers initialization function for a 6LoWPAN interface.
 
typedef void(* lwip_netif_setup_func_t) (void)
 
void lwip_netif_init_devs (void)
 
struct netif * lwip_add_ethernet (lwip_netif_t *netif, netdev_t *state)
 Adds an Ethernet netif using the supplied netdev.
 

Macro Definition Documentation

◆ LWIP_INIT_6LOWPAN_NETIF

#define LWIP_INIT_6LOWPAN_NETIF (   func)
Value:
XFA_USE_CONST(lwip_netif_setup_func_t, lwip_netif_6lowpan_xfa); \
XFA_ADD_PTR(lwip_netif_6lowpan_xfa, func, func, &func)
#define XFA_USE_CONST(type, name)
Declare an external read-only cross-file array.
Definition xfa.h:114

Registers initialization function for a 6LoWPAN interface.

Definition at line 68 of file lwip_init_devs.h.

◆ LWIP_INIT_ETH_NETIF

#define LWIP_INIT_ETH_NETIF (   func)
Value:
XFA_USE_CONST(lwip_netif_setup_func_t, lwip_netif_eth_xfa); \
XFA_ADD_PTR(lwip_netif_eth_xfa, func, func, &func)

Registers initialization function for an Ethernet interface.

Definition at line 61 of file lwip_init_devs.h.

Typedef Documentation

◆ lwip_netif_setup_func_t

typedef void(* lwip_netif_setup_func_t) (void)

Definition at line 56 of file lwip_init_devs.h.

Function Documentation

◆ lwip_add_ethernet()

struct netif * lwip_add_ethernet ( lwip_netif_t netif,
netdev_t state 
)

Adds an Ethernet netif using the supplied netdev.

Parameters
netifpointer to the interface to be added
statepointer to the netdev for the interface

The netif will be set up using the lwip_netdev_init helper. The first netif added will be marked as the default route.