Page MenuHomeFreeBSD

pf: send ICMP destination unreachable fragmentation needed when appropriate
ClosedPublic

Authored by kp on Feb 3 2025, 10:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 12:38 PM
Unknown Object (File)
Wed, Nov 26, 1:38 PM
Unknown Object (File)
Sat, Nov 22, 2:27 AM
Unknown Object (File)
Thu, Nov 6, 7:26 PM
Unknown Object (File)
Nov 2 2025, 1:25 AM
Unknown Object (File)
Oct 23 2025, 9:20 PM
Unknown Object (File)
Oct 22 2025, 10:29 PM
Unknown Object (File)
Oct 14 2025, 7:25 AM

Details

Summary

Just like we do for IPv6, generate an ICMP fragmentation needed packet if we're
going to need fragmenation for IPv4 as well (i.e. DF is set). Do so before full
processing, so we generate it with pre-NAT addreses, just as we do for IPv6.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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

Event Timeline

kp requested review of this revision.Feb 3 2025, 10:51 AM

Maybe commit changes to ip_output.c and ip_fastfwd.c separately? Cause they are a generic change, not something specific to ICMP.

Split off network stack changes

Maybe commit changes to ip_output.c and ip_fastfwd.c separately? Cause they are a generic change, not something specific to ICMP.

Yeah, that's a good idea. See D48824 for those.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 4 2025, 9:14 PM
This revision was automatically updated to reflect the committed changes.