pkg/lwip: Fix compilation without IPv6
RIOT/pkg/lwip/init_devs/init.c:65:61: error: 'tcpip_6lowpan_input' undeclared (first use in this function)
return netif_add_noaddr(netif, state, lwip_netdev_init, tcpip_6lowpan_input);
^
This commit is contained in:
parent
bff9cb7f30
commit
adccbc9f2a
@ -41,6 +41,7 @@ void lwip_netif_init_devs(void);
|
|||||||
*/
|
*/
|
||||||
struct netif *lwip_add_ethernet(struct netif *netif, netdev_t *state);
|
struct netif *lwip_add_ethernet(struct netif *netif, netdev_t *state);
|
||||||
|
|
||||||
|
#if IS_USED(MODULE_LWIP_SIXLOWPAN)
|
||||||
/**
|
/**
|
||||||
* @brief Adds a 6LoWPAN netif using the supplied netdev.
|
* @brief Adds a 6LoWPAN netif using the supplied netdev.
|
||||||
*
|
*
|
||||||
@ -50,6 +51,7 @@ struct netif *lwip_add_ethernet(struct netif *netif, netdev_t *state);
|
|||||||
* The netif will be set up using the `lwip_netdev_init` helper.
|
* The netif will be set up using the `lwip_netdev_init` helper.
|
||||||
*/
|
*/
|
||||||
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state);
|
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state);
|
||||||
|
#endif /* MODULE_LWIP_SIXLOWPAN */
|
||||||
|
|
||||||
typedef void (*lwip_netif_setup_func_t)(void);
|
typedef void (*lwip_netif_setup_func_t)(void);
|
||||||
|
|
||||||
|
|||||||
@ -60,9 +60,11 @@ struct netif *lwip_add_ethernet(struct netif *netif, netdev_t *state)
|
|||||||
return _if;
|
return _if;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if IS_USED(MODULE_LWIP_SIXLOWPAN)
|
||||||
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state)
|
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state)
|
||||||
{
|
{
|
||||||
return netif_add_noaddr(netif, state, lwip_netdev_init, tcpip_6lowpan_input);
|
return netif_add_noaddr(netif, state, lwip_netdev_init, tcpip_6lowpan_input);
|
||||||
}
|
}
|
||||||
|
#endif /* MODULE_LWIP_SIXLOWPAN */
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user