summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_norm.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-10-26 21:07:22 +0000
committerbluhm <bluhm@openbsd.org>2016-10-26 21:07:22 +0000
commitab417b3aceab3374446d64a762fe7a3053ef6401 (patch)
tree470c61ca2e44b1cac4226372f9c797eae386a83c /sys/net/pf_norm.c
parentIn addition to forwarding and path MTU discovery with pf, check (diff)
downloadwireguard-openbsd-ab417b3aceab3374446d64a762fe7a3053ef6401.tar.xz
wireguard-openbsd-ab417b3aceab3374446d64a762fe7a3053ef6401.zip
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_norm.c')
-rw-r--r--sys/net/pf_norm.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index 043ba6b54b7..6a68280d54b 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.194 2016/09/27 04:57:17 dlg Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.195 2016/10/26 21:07:22 bluhm Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -40,28 +40,29 @@
#include <sys/pool.h>
#include <sys/syslog.h>
+#include <net/if.h>
+#include <net/if_var.h>
+#include <net/if_pflog.h>
+
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
+#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/tcp_seq.h>
#include <netinet/tcp_fsm.h>
#include <netinet/udp.h>
-#include <netinet/ip_icmp.h>
-
-#include <net/if.h>
-#include <net/if_var.h>
-#include <net/if_pflog.h>
#ifdef INET6
+#include <netinet6/in6_var.h>
#include <netinet/ip6.h>
#include <netinet6/ip6_var.h>
-#include <netinet6/in6_var.h>
-#include <netinet6/nd6.h>
#include <netinet/icmp6.h>
+#include <netinet6/nd6.h>
#endif /* INET6 */
#include <net/pfvar.h>
+#include <net/pfvar_priv.h>
struct pf_frent {
TAILQ_ENTRY(pf_frent) fr_next;