[riot-notifications] [RIOT-OS/RIOT] gnrc_netif: relax 6lo MTU assertion for 802.15.4g (#14172)

benpicco notifications at github.com
Fri May 29 16:03:31 CEST 2020




<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description

802.15.4g devices have a 2047 byte PDU.
So the assertion `netif->ipv6.mtu == IPV6_MIN_MTU` is too strict here.

This is only enforced on init, so changing the modulation at run-time did not catch this bug.



### Testing procedure

To test, use e.g. `at86rf215` with 

    CFLAGS += -DAT86RF215_DEFAULT_PHY_MODE=IEEE802154_PHY_MR_OQPSK

and flash `examples/gnrc_networking`.
On `master` the this leads to a failed `assert()`.

### Issues/PRs references

fixes #14164

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14172

-- Commit Summary --

  * gnrc_netif: relax 6lo MTU assertion for 802.15.4g

-- File Changes --

    M sys/net/gnrc/netif/gnrc_netif.c (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14172.patch
https://github.com/RIOT-OS/RIOT/pull/14172.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14172
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200529/956addd2/attachment.htm>


More information about the notifications mailing list