Page MenuHomeFreeBSD

libpfctl: Switch to pfctl_rule
ClosedPublic

Authored by kp on Apr 8 2021, 12:36 PM.
Tags
None
Referenced Files
F86843542: D29644.id87031.diff
Wed, Jun 26, 11:00 AM
F86800408: D29644.diff
Tue, Jun 25, 6:25 PM
Unknown Object (File)
Sun, Jun 23, 11:27 PM
Unknown Object (File)
Fri, Jun 14, 6:58 PM
Unknown Object (File)
May 23 2024, 10:05 AM
Unknown Object (File)
May 17 2024, 8:35 AM
Unknown Object (File)
May 14 2024, 2:19 AM
Unknown Object (File)
May 2 2024, 2:52 PM

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.