Page MenuHomeFreeBSD

sys/netinet: handle IPv4 PMTU Discovery
Needs ReviewPublic

Authored by wma on Jul 2 2021, 4:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 3:52 AM
Unknown Object (File)
Feb 15 2024, 2:33 AM
Unknown Object (File)
Dec 23 2023, 12:31 PM
Unknown Object (File)
Dec 12 2023, 2:13 PM
Unknown Object (File)
Oct 17 2023, 6:58 PM
Unknown Object (File)
Oct 13 2023, 10:17 AM
Unknown Object (File)
Oct 7 2023, 8:19 AM
Unknown Object (File)
Jun 16 2023, 6:16 PM
Subscribers

Details

Reviewers
mw
imp
np
tuexen
Summary

On input ICMP handler is updating tcp_hostcache with the PMTU value.
On output calculate MTU based on the route/interface and hostcache.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wma requested review of this revision.Jul 2 2021, 4:37 AM

SCTP and TCP do a similar handling, but only after performing some checks (port numbers and vtag in case of SCTP, port numbers and sequence number in case of TCP) to make it non-trivial for an off-path attacker to generate an ICMP message, which will be accepted and the corresponding MTU will be cached.

How is such an check done in this context?

Good point. I removed all *input processing and left only *output check, which might be worth to have it in one place as we don't update mtu here anyway. Also pushed some changes to UDP ctlinput to match https://reviews.freebsd.org/D30992