Page MenuHomeFreeBSD

if_gif(4): Support the IFF_LINK0 flag to change the MTU handling for IPv6
Needs ReviewPublic

Authored by hrs on Jul 3 2024, 8:35 AM.
Tags
None
Referenced Files
F106641914: D45854.diff
Fri, Jan 3, 5:48 AM
Unknown Object (File)
Mon, Dec 9, 3:50 AM
Unknown Object (File)
Nov 25 2024, 6:59 AM
Unknown Object (File)
Nov 25 2024, 1:08 AM
Unknown Object (File)
Oct 2 2024, 7:24 PM
Unknown Object (File)
Oct 2 2024, 7:20 PM
Unknown Object (File)
Sep 30 2024, 8:01 PM
Unknown Object (File)
Sep 25 2024, 8:22 PM

Details

Reviewers
None
Group Reviewers
network
manpages
Summary

The gif(4) interface always used IPV6_MINMTU when the outer protocol was
IPv6 so that packets would not be dropped between the tunnel endpoints.
The interface MTU was ignored because path MTU discovery was too expensive.

This change adds IFF_LINK0 flag support to revert it to normal behavior,
and documents the backgrounds. While using IPV6_MINMTU is still
the safest option for IPv6, ignoring the configured interface MTU is
confuses the users, and using a larger MTU is sometimes useful.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58471
Build 55359: arc lint + arc unit

Event Timeline

hrs requested review of this revision.Jul 3 2024, 8:35 AM

Maybe it would be better implement such feature via named flag, like ignore_source is implemented? Also if_gre(4) has the same problem.

bcr added a subscriber: bcr.

OK for the man page part of the change.