diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-26 21:07:23 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-10-26 21:07:23 +0000 |
commit | c3ec7559ddf5301cc2e4c3703b0d1b345c476545 (patch) | |
tree | c865963e7c2c794ef4b527e736ef32e92b310986 /sys/net/pf_norm.c | |
parent | e48f459eb4fa6a5833252c7423b1c8779ab812b3 (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_norm.c')
-rw-r--r-- | sys/net/pf_norm.c | 17 |
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; |