aboutsummaryrefslogtreecommitdiff
path: root/sys/netpfil
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2021-04-07 17:49:51 +0000
committerKristof Provost <kp@FreeBSD.org>2021-04-10 09:16:02 +0000
commita9b338b260be39cc74dddb599d6c95b8794ca98b (patch)
tree29432bb37678d0aa3a2be0672dac9f64fc033476 /sys/netpfil
parent956e7d232549ce4b17f5b1a079e5b51229479dda (diff)
downloadsrc-a9b338b260be39cc74dddb599d6c95b8794ca98b.tar.gz
src-a9b338b260be39cc74dddb599d6c95b8794ca98b.zip
pf: Move prototypes for userspace functions to userspace header
These functions no longer exist in the kernel, so there's no reason to keep the prototypes in a kernel header. Move them to pfctl where they're actually implemented. Reviewed by: glebius MFC after: 4 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29643
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/pf/pf.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/netpfil/pf/pf.h b/sys/netpfil/pf/pf.h
index bc6cd92ae7b8..3e358de8aba5 100644
--- a/sys/netpfil/pf/pf.h
+++ b/sys/netpfil/pf/pf.h
@@ -637,13 +637,6 @@ struct pf_anchor {
RB_PROTOTYPE(pf_anchor_global, pf_anchor, entry_global, pf_anchor_compare);
RB_PROTOTYPE(pf_anchor_node, pf_anchor, entry_node, pf_anchor_compare);
-/* these ruleset functions can be linked into userland programs (pfctl) */
-int pf_get_ruleset_number(u_int8_t);
-void pf_init_ruleset(struct pf_ruleset *);
-int pf_anchor_setup(struct pf_rule *,
- const struct pf_ruleset *, const char *);
-void pf_remove_if_empty_ruleset(struct pf_ruleset *);
-struct pf_ruleset *pf_find_ruleset(const char *);
-struct pf_ruleset *pf_find_or_create_ruleset(const char *);
+int pf_get_ruleset_number(u_int8_t);
#endif /* _NET_PF_H_ */