Page MenuHomeFreeBSD

pf: reduce IPv6 header parsing code duplication
Needs ReviewPublic

Authored by kp on Fri, Oct 4, 12:43 PM.

Details

Reviewers
None
Group Reviewers
network
pfsense
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59738
Build 56624: arc lint + arc unit