1
0
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:
János Brodbeck 2020-10-16 19:01:35 +02:00
parent d4f576f677
commit 5a75eb29c3
No known key found for this signature in database
GPG Key ID: 65C193B0D8D1BCE6
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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"

View File

@ -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);