Page MenuHomeFreeBSD

pf: merge pf_scrub_ip() and pf_scrub_ip6()
ClosedPublic

Authored by kp on Sep 7 2024, 9:37 AM.
Tags
None
Referenced Files
F132979329: D46597.diff
Tue, Oct 21, 6:53 PM
Unknown Object (File)
Tue, Oct 21, 12:58 AM
Unknown Object (File)
Fri, Oct 17, 10:01 PM
Unknown Object (File)
Fri, Sep 26, 4:44 PM
Unknown Object (File)
Thu, Sep 25, 2:49 AM
Unknown Object (File)
Wed, Sep 24, 3:07 AM
Unknown Object (File)
Aug 30 2025, 5:28 PM
Unknown Object (File)
Aug 29 2025, 7:42 AM

Details

Summary

Merge pf_scrub_ip() and pf_scrub_ip6() into a single function. Call
pf_scrub with the right arugments in the rule case so that match
rules will work as expected.

OK henning@

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

Diff Detail

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

Event Timeline

kp requested review of this revision.Sep 7 2024, 9:37 AM
zlei added a subscriber: zlei.
zlei added inline comments.
sys/netpfil/pf/pf_norm.c
2281

Emm, I'd personally prefer big switch case blocks, rather than test pd->af everywhere. But no objection since it is from upstream.

This revision is now accepted and ready to land.Sep 14 2024, 8:32 AM
This revision was automatically updated to reflect the committed changes.