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:
Erik Ekman 2021-08-20 17:33:47 +02:00
parent bff9cb7f30
commit adccbc9f2a
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ void lwip_netif_init_devs(void);
*/
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.
*
@ -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.
*/
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state);
#endif /* MODULE_LWIP_SIXLOWPAN */
typedef void (*lwip_netif_setup_func_t)(void);

View File

@ -60,9 +60,11 @@ struct netif *lwip_add_ethernet(struct netif *netif, netdev_t *state)
return _if;
}
#if IS_USED(MODULE_LWIP_SIXLOWPAN)
struct netif *lwip_add_6lowpan(struct netif *netif, netdev_t *state)
{
return netif_add_noaddr(netif, state, lwip_netdev_init, tcpip_6lowpan_input);
}
#endif /* MODULE_LWIP_SIXLOWPAN */
/**@}*/