summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-11-20 14:14:26 +0000
committermpi <mpi@openbsd.org>2017-11-20 14:14:26 +0000
commitc6561e671e46192a62b439d11252e670ae5aec89 (patch)
tree80d22af1f0781450ea34a6a952ff0cfc96af7608
parentWnen purging dhclient.leases and when looking for unexpired offers to (diff)
downloadwireguard-openbsd-c6561e671e46192a62b439d11252e670ae5aec89.tar.xz
wireguard-openbsd-c6561e671e46192a62b439d11252e670ae5aec89.zip
Keep kernel defines under #ifdef _KERNEL.
ok bluhm@
-rw-r--r--sys/netinet/ip_ipsp.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index 187a15eb5bd..1d7fb6c3b2f 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.188 2017/11/15 11:48:59 mpi Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.189 2017/11/20 14:14:26 mpi Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -45,10 +45,6 @@ struct m_tag;
/* IPSP global definitions. */
#include <sys/types.h>
-#ifdef _KERNEL
-#include <sys/timeout.h>
-#include <sys/tree.h>
-#endif
#include <sys/queue.h>
#include <netinet/in.h>
#include <net/radix.h>
@@ -130,6 +126,8 @@ struct sockaddr_encap {
#define IPSP_DIRECTION_OUT 0x2
#ifdef _KERNEL
+#include <sys/timeout.h>
+#include <sys/tree.h>
#define sen_data Sen.Data
#define sen_ip_src Sen.Sip4.Src
@@ -352,7 +350,6 @@ struct tdb { /* tunnel descriptor block */
TAILQ_ENTRY(tdb) tdb_sync_entry;
};
-#endif /* _KERNEL */
struct tdb_ident {
u_int32_t spi;
@@ -394,8 +391,6 @@ struct ipsecinit {
#define IPSEC_ZEROES_SIZE 256 /* Larger than an IP6 extension hdr. */
-#ifdef _KERNEL
-
struct xformsw {
u_short xf_type; /* Unique ID of xform */
u_short xf_flags; /* flags (see below) */