mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/netif/gnrc_netif: allow larger IPv6 MTU than minimum for BLE
This commit is contained in:
parent
d4f576f677
commit
5a75eb29c3
@ -182,8 +182,8 @@ extern "C" {
|
||||
*
|
||||
* @experimental
|
||||
*
|
||||
* This feature is non compliant with RFC 4944 and might not be supported by
|
||||
* other implementations.
|
||||
* This feature is non compliant with RFC 4944 and RFC 7668 and might not be
|
||||
* supported by other implementations.
|
||||
*/
|
||||
#ifndef CONFIG_GNRC_NETIF_NONSTANDARD_6LO_MTU
|
||||
#define CONFIG_GNRC_NETIF_NONSTANDARD_6LO_MTU 0
|
||||
|
@ -45,8 +45,8 @@ config GNRC_NETIF_NONSTANDARD_6LO_MTU
|
||||
depends on USEMODULE_GNRC_NETIF_6LO
|
||||
help
|
||||
Enables the usage of non standard MTU for 6LoWPAN network interfaces.
|
||||
This is non compliant with RFC 4944 and might not be supported by other
|
||||
implementations.
|
||||
This is non compliant with RFC 4944 and RFC 7668 and might not be
|
||||
supported by other implementations.
|
||||
|
||||
config GNRC_NETIF_PKTQ_POOL_SIZE
|
||||
int "Packet queue pool size for all network interfaces"
|
||||
|
@ -1199,7 +1199,11 @@ static void _test_options(gnrc_netif_t *netif)
|
||||
#if IS_USED(MODULE_GNRC_NETIF_IPV6)
|
||||
switch (netif->device_type) {
|
||||
case NETDEV_TYPE_BLE:
|
||||
#if IS_ACTIVE(CONFIG_GNRC_NETIF_NONSTANDARD_6LO_MTU)
|
||||
assert(netif->ipv6.mtu >= IPV6_MIN_MTU);
|
||||
#else
|
||||
assert(netif->ipv6.mtu == IPV6_MIN_MTU);
|
||||
#endif /* IS_ACTIVE(CONFIG_GNRC_NETIF_NONSTANDARD_6LO_MTU) */
|
||||
break;
|
||||
case NETDEV_TYPE_ETHERNET:
|
||||
assert(netif->ipv6.mtu == ETHERNET_DATA_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user