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:
commit
896aeae248
@ -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…
Reference in New Issue
Block a user