Helpers for simplified network setup. More...
Helpers for simplified network setup.
Definition in file 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. | |
#define LWIP_INIT_6LOWPAN_NETIF | ( | func | ) |
Registers initialization function for a 6LoWPAN interface.
Definition at line 68 of file lwip_init_devs.h.
#define LWIP_INIT_ETH_NETIF | ( | func | ) |
Registers initialization function for an Ethernet interface.
Definition at line 61 of file lwip_init_devs.h.
typedef void(* lwip_netif_setup_func_t) (void) |
Definition at line 56 of file lwip_init_devs.h.
struct netif * lwip_add_ethernet | ( | lwip_netif_t * | netif, |
netdev_t * | state | ||
) |
Adds an Ethernet netif using the supplied netdev.
netif | pointer to the interface to be added |
state | pointer 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.