pfctl shares some structures (namely pfi_kif) with the kernel but
doesn't use the ifnet pointer so it gets a bunch of forward
declarations for ifnet and interface group structures.
OK?
diff --git sys/net/pfvar.h sys/net/pfvar.h
index 37f61e4..a05fc49 100644
--- sys/net/pfvar.h
+++ sys/net/pfvar.h
@@ -1190,10 +1190,13 @@ extern struct pf_state_tree pf_statetbl;
/* keep synced with pfi_kif, used in RB_FIND */
struct pfi_kif_cmp {
char pfik_name[IFNAMSIZ];
};
+struct ifnet;
+struct ifg_group;
+
struct pfi_kif {
char pfik_name[IFNAMSIZ];
RB_ENTRY(pfi_kif) pfik_tree;
u_int64_t pfik_packets[2][2][2];
u_int64_t pfik_bytes[2][2][2];