1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

gnrc_netif: provide addr_len_from_l2ao for nordic_softdevice_ble

This commit is contained in:
Martine Lenders 2019-01-18 17:47:20 +01:00
parent 16e4722670
commit 0f1bfad15b

View File

@ -298,9 +298,11 @@ int gnrc_netif_ndp_addr_len_from_l2ao(gnrc_netif_t *netif,
(void)opt; (void)opt;
return sizeof(uint8_t); return sizeof(uint8_t);
#endif /* MODULE_CC110X */ #endif /* MODULE_CC110X */
#if defined(MODULE_NETDEV_ETH) || defined(MODULE_ESP_NOW) #if defined(MODULE_NETDEV_ETH) || defined(MODULE_ESP_NOW) || \
defined(MODULE_NORDIC_SOFTDEVICE_BLE)
case NETDEV_TYPE_ETHERNET: case NETDEV_TYPE_ETHERNET:
case NETDEV_TYPE_ESP_NOW: case NETDEV_TYPE_ESP_NOW:
case NETDEV_TYPE_BLE:
/* see https://tools.ietf.org/html/rfc2464#section-6*/ /* see https://tools.ietf.org/html/rfc2464#section-6*/
if (opt->len == 1U) { if (opt->len == 1U) {
return ETHERNET_ADDR_LEN; return ETHERNET_ADDR_LEN;