Page MenuHomeFreeBSD

pf: reduce IPv6 header parsing code duplication
ClosedPublic

Authored by kp on Oct 4 2024, 12:43 PM.
Tags
None
Referenced Files
F109957301: D46925.diff
Tue, Feb 11, 5:39 PM
Unknown Object (File)
Mon, Feb 10, 1:30 PM
Unknown Object (File)
Sun, Feb 9, 8:52 AM
Unknown Object (File)
Fri, Jan 24, 9:49 AM
Unknown Object (File)
Wed, Jan 15, 9:38 PM
Unknown Object (File)
Mon, Jan 13, 12:35 PM
Unknown Object (File)
Dec 30 2024, 5:15 PM
Unknown Object (File)
Dec 20 2024, 6:01 PM

Details

Summary

There were two loops in pf_setup_pdesc() and pf_normalize_ip6()
walking over the IPv6 header chain. Merge them into one loop,
adjust some length checks and fix IPv6 jumbo option handling. Also
allow strange but legal IPv6 packets with plen=0 passing through
pf. IPv6 jumbo packets still get dropped.
testing dhill@; ok mcbride@ henning@

Obtained from: OpenBSD, bluhm <bluhm@openbsd.org>, d68283bbf0
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable