summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/net/if_pflog.h
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-03-09 15:54:01 +0000
committeryar <yar@FreeBSD.org>2006-03-09 15:54:01 +0000
commit4a02e1707a77fc923dfb9a5839d5d97b3707cdfa (patch)
tree23050708f27a85aa1104e7f6255638e2f719cadb /sys/contrib/pf/net/if_pflog.h
parent7260b918423c5c44de7c0324825b09a97dab9d40 (diff)
downloadFreeBSD-src-4a02e1707a77fc923dfb9a5839d5d97b3707cdfa.zip
FreeBSD-src-4a02e1707a77fc923dfb9a5839d5d97b3707cdfa.tar.gz
Avoid pulling in the whole <net/pfvar.h> by opaquely declaring
the structs pflog_packet() takes pointers to. Approved by: mlaier MFC after: 3 days
Diffstat (limited to 'sys/contrib/pf/net/if_pflog.h')
-rw-r--r--sys/contrib/pf/net/if_pflog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/if_pflog.h b/sys/contrib/pf/net/if_pflog.h
index 93cb884..4e160a7 100644
--- a/sys/contrib/pf/net/if_pflog.h
+++ b/sys/contrib/pf/net/if_pflog.h
@@ -71,8 +71,9 @@ struct old_pfloghdr {
#ifdef _KERNEL
#ifdef __FreeBSD__
-/* XXX */
-#include <net/pfvar.h>
+struct pf_rule;
+struct pf_ruleset;
+struct pfi_kif;
typedef int pflog_packet_t(struct pfi_kif *, struct mbuf *, sa_family_t,
u_int8_t, u_int8_t, struct pf_rule *, struct pf_rule *,
OpenPOWER on IntegriCloud