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
F133094727: D48805.id150389.diff
Wed, Oct 22, 10:29 PM
Unknown Object (File)
Tue, Oct 14, 7:25 AM
Unknown Object (File)
Sun, Oct 12, 1:04 AM
Unknown Object (File)
Wed, Oct 8, 8:37 PM
Unknown Object (File)
Mon, Oct 6, 1:42 PM
Unknown Object (File)
Thu, Oct 2, 2:00 AM
Unknown Object (File)
Sun, Sep 28, 5:04 AM
Unknown Object (File)
Sep 12 2025, 9:41 PM

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 Not Applicable
Unit
Tests Not Applicable

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.