summaryrefslogtreecommitdiff
path: root/sys/net/pf_table.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2016-10-26 21:07:23 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2016-10-26 21:07:23 +0000
commitc3ec7559ddf5301cc2e4c3703b0d1b345c476545 (patch)
treec865963e7c2c794ef4b527e736ef32e92b310986 /sys/net/pf_table.c
parente48f459eb4fa6a5833252c7423b1c8779ab812b3 (diff)
Put union pf_headers and struct pf_pdesc into separate header file
pfvar_priv.h. The pf_headers had to be defined in multiple .c files before. In pfvar.h it would have unknown storage size, this file is included in too many places. The idea is to have a private pf header that is only included in the pf part of the kernel. For now it contains pf_pdesc and pf_headers, it may be extended later. discussion, input and OK henning@ procter@ sashan@
Diffstat (limited to 'sys/net/pf_table.c')
-rw-r--r--sys/net/pf_table.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c
index 21f12502a3f..091185c715c 100644
--- a/sys/net/pf_table.c
+++ b/sys/net/pf_table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_table.c,v 1.120 2016/09/27 04:57:17 dlg Exp $ */
+/* $OpenBSD: pf_table.c,v 1.121 2016/10/26 21:07:22 bluhm Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -38,9 +38,21 @@
#include <sys/syslog.h>
#include <net/if.h>
+
#include <netinet/in.h>
+#include <netinet/ip.h>
#include <netinet/ip_ipsp.h>
+#include <netinet/ip_icmp.h>
+#include <netinet/tcp.h>
+#include <netinet/udp.h>
+
+#ifdef INET6
+#include <netinet/ip6.h>
+#include <netinet/icmp6.h>
+#endif /* INET6 */
+
#include <net/pfvar.h>
+#include <net/pfvar_priv.h>
#define ACCEPT_FLAGS(flags, oklist) \
do { \