Skip to content

net/icmpv6/icmpv6_input.c: Dont increase d_pktsize from router advertise#18866

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
daniel-geotab:fix/dl.dontIncreaseMTU
May 12, 2026
Merged

net/icmpv6/icmpv6_input.c: Dont increase d_pktsize from router advertise#18866
xiaoxiang781216 merged 1 commit into
apache:masterfrom
daniel-geotab:fix/dl.dontIncreaseMTU

Conversation

@daniel-geotab
Copy link
Copy Markdown
Contributor

@daniel-geotab daniel-geotab commented May 11, 2026

Summary

An IPV6 Router advertisement can have an MTU option. This option should not increase the d_pktsize for a given interface since that max size might have been set based on CONFIG or buffer size.

Change the processing code to only allow decreasing MTU

Impact

  • Only those who use CONFIG_NET_ICMPv6_AUTOCONF

Testing

  • Tested using an IPV6 enabled modem

Here is an image of captured network data showing an MTU of 1428. This was overriding/increasing my Kconfig set MTU of 1400 for my tun interface set in CONFIG_NET_TUN_PKTSIZE

image

An IPV6 Router advertisement can have an MTU max option.
This option should not increase the d_pktsize for a given interface
since that max size might have been set based on CONFIG or buffer size.

Signed-off-by: daniellizewski <daniellizewski@geotab.com>
@github-actions github-actions Bot added Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small labels May 11, 2026
@xiaoxiang781216 xiaoxiang781216 merged commit 4711abc into apache:master May 12, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Networking Effects networking subsystem Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants