1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16762 from yarrick/v4_build

pkg/lwip: Fix compilation without IPv6
This commit is contained in:
benpicco 2021-08-20 19:02:11 +02:00 committed by GitHub
commit 896aeae248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 */
/**@}*/