summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pf_print_state.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-06-06 22:22:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-06-06 22:22:45 +0000
commit4b2b99600e1d4b0342f95e885d93f52cbba23d2b (patch)
tree92f0a06f1fcc3bfbb66321230293dd45ad3aa8db /sbin/pfctl/pf_print_state.h
parent22bfc49ac8995eef9419b0f20ea2df5c8b8ebeb2 (diff)
split out the pf_state printing functions to be used elsewhere, no functional change; dhartmei@ ok
Diffstat (limited to 'sbin/pfctl/pf_print_state.h')
-rw-r--r--sbin/pfctl/pf_print_state.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/pfctl/pf_print_state.h b/sbin/pfctl/pf_print_state.h
new file mode 100644
index 00000000000..0fb2c1601b2
--- /dev/null
+++ b/sbin/pfctl/pf_print_state.h
@@ -0,0 +1,6 @@
+int unmask (struct pf_addr *, u_int8_t);
+void print_addr (struct pf_addr_wrap *, struct pf_addr *, u_int8_t);
+void print_host (struct pf_state_host *, u_int8_t, int);
+void print_seq (struct pf_state_peer *);
+void print_state(struct pf_state *s, int verbose);
+struct hostent *getpfhostname(const char *addr_str);