summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-24 00:29:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-01-24 00:29:07 +0000
commit2fda989bf1d6710a0aaa1f603209734760d23bd5 (patch)
tree76a793084eba07e5a284d877f9353c56699ff895 /sys/net/pfvar.h
parentd9613db2f474744f9c165b0b5a70906a4828cab9 (diff)
Userland (base & ports) was adapted to always include <netinet/in.h>
before <net/pfvar.h> or <net/if_pflog.h>. The kernel files can be cleaned up next. Some sockaddr_union steps make it into here as well. ok naddy
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index cc29c79a875..824aaaec6ce 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.407 2015/01/15 23:56:58 deraadt Exp $ */
+/* $OpenBSD: pfvar.h,v 1.408 2015/01/24 00:29:06 deraadt Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -41,8 +41,6 @@
#include <net/radix.h>
#include <net/route.h>
-#include <netinet/ip_ipsp.h>
-#include <netinet/tcp_fsm.h>
struct ip;
struct ip6_hdr;
@@ -1084,10 +1082,21 @@ struct pfr_kcounters {
u_int64_t states;
};
+/*
+ * XXX ip_ipsp.h's sockaddr_union should be converted to sockaddr *
+ * passing with correct sa_len, then a good approach for cleaning this
+ * will become more clear.
+ */
+union pfsockaddr_union {
+ struct sockaddr sa;
+ struct sockaddr_in sin;
+ struct sockaddr_in6 sin6;
+};
+
SLIST_HEAD(pfr_kentryworkq, pfr_kentry);
struct _pfr_kentry {
struct radix_node _pfrke_node[2];
- union sockaddr_union _pfrke_sa;
+ union pfsockaddr_union _pfrke_sa;
SLIST_ENTRY(pfr_kentry) _pfrke_workq;
struct pfr_kcounters *_pfrke_counters;
time_t _pfrke_tzero;