Page MenuHomeFreeBSD

libpfctl: Switch to pfctl_rule
ClosedPublic

Authored by kp on Apr 8 2021, 12:36 PM.
Tags
None
Referenced Files
F107016317: D29644.diff
Thu, Jan 9, 12:38 AM
Unknown Object (File)
Sat, Jan 4, 12:13 AM
Unknown Object (File)
Thu, Dec 26, 3:16 PM
Unknown Object (File)
Mon, Dec 23, 6:09 AM
Unknown Object (File)
Thu, Dec 12, 9:23 PM
Unknown Object (File)
Dec 9 2024, 1:18 AM
Unknown Object (File)
Dec 5 2024, 7:58 PM
Unknown Object (File)
Nov 25 2024, 2:17 AM

Details

Summary

Stop using the kernel's struct pf_rule, switch to libpfctl's pfctl_rule.
Now that we use nvlists to communicate with the kernel these structures
can be fully decoupled.

MFC after: 4 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38411
Build 35300: arc lint + arc unit

Event Timeline

kp requested review of this revision.Apr 8 2021, 12:36 PM
glebius added a subscriber: glebius.
glebius added inline comments.
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1518

Do you plan to eventually hide struct pfioc_rule into libpfctl?

This revision is now accepted and ready to land.Apr 8 2021, 7:40 PM
usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
1518

I'm hoping to eventually delete it entirely.
One of the things I want to add to libpfctl is a convenience function to get the ticket, at which point I'll try to work out if I want to have a new struct to keep ticket, pool_ticket, anchor and anchor_call in.

This revision was automatically updated to reflect the committed changes.