aboutsummaryrefslogtreecommitdiff
path: root/sbin
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 /sbin
parent956e7d232549ce4b17f5b1a079e5b51229479dda (diff)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pf_ruleset.c2
-rw-r--r--sbin/pfctl/pfctl.h8
2 files changed, 10 insertions, 0 deletions
diff --git a/sbin/pfctl/pf_ruleset.c b/sbin/pfctl/pf_ruleset.c
index 7c337d7a2da7..baac1deb4fa7 100644
--- a/sbin/pfctl/pf_ruleset.c
+++ b/sbin/pfctl/pf_ruleset.c
@@ -64,6 +64,8 @@ __FBSDID("$FreeBSD$");
#define rs_malloc(x) calloc(1, x)
#define rs_free(x) free(x)
+#include "pfctl.h"
+
#ifdef PFDEBUG
#include <sys/stdarg.h>
#define DPFPRINTF(format, x...) fprintf(stderr, format , ##x)
diff --git a/sbin/pfctl/pfctl.h b/sbin/pfctl/pfctl.h
index f43b71e19fec..5aa94b2bb0c8 100644
--- a/sbin/pfctl/pfctl.h
+++ b/sbin/pfctl/pfctl.h
@@ -128,4 +128,12 @@ u_int32_t
pfctl_get_ticket(struct pfr_buffer *, int, const char *);
int pfctl_trans(int, struct pfr_buffer *, u_long, int);
+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 *);
+
#endif /* _PFCTL_H_ */