summaryrefslogtreecommitdiff
path: root/sys/netinet6/ipv6_icmp.c
diff options
context:
space:
mode:
authorcmetz <cmetz@cvs.openbsd.org>1999-03-09 05:31:56 +0000
committercmetz <cmetz@cvs.openbsd.org>1999-03-09 05:31:56 +0000
commitc17820c2d223c38e9b24af57e8e93304133580c5 (patch)
tree078025a176d45d7638cee69e3ba767edd26c7223 /sys/netinet6/ipv6_icmp.c
parente25d73e4b2f1e9be6806cea63cd0836e3097457f (diff)
Demangled the INET6 stuff so as not to require any extra options and not to
be mutually exclusive with the IPSEC option.
Diffstat (limited to 'sys/netinet6/ipv6_icmp.c')
-rw-r--r--sys/netinet6/ipv6_icmp.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/sys/netinet6/ipv6_icmp.c b/sys/netinet6/ipv6_icmp.c
index 0e92f8d38d8..01424305243 100644
--- a/sys/netinet6/ipv6_icmp.c
+++ b/sys/netinet6/ipv6_icmp.c
@@ -34,9 +34,12 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
#include <netinet6/ipv6_icmp.h>
#include <netinet6/icmpv6_var.h>
-#if __OpenBSD__ && defined(NRL_IPSEC)
+#if __OpenBSD__
+#undef IPSEC
+#ifdef NRL_IPSEC
#define IPSEC 1
-#endif /* __OpenBSD__ && defined(NRL_IPSEC) */
+#endif /* NRL_IPSEC */
+#endif /* __OpenBSD__ */
#ifdef IPSEC
#include <sys/osdep.h>
@@ -47,17 +50,20 @@ extern struct netproc_security fixedencrypt;
extern struct netproc_auth fixedauth;
#endif /* IPSEC */
-#ifdef DEBUG_NRL_SYS
-#include <sys/debug.h>
-#endif /* DEBUG_NRL_SYS */
-#ifdef DEBUG_NRL_NETINET6
-#include <netinet6/debug.h>
-#endif /* DEBUG_NRL_NETINET6 */
-
#if __FreeBSD__
#include <sys/sysctl.h>
#endif /* __FreeBSD__ */
+#ifdef DEBUG_NRL
+#include <sys/debug.h>
+#else /* DEBUG_NRL */
+#if __OpenBSD__
+#include <netinet6/debug.h>
+#else /* __OpenBSD__ */
+#include <sys/debug.h>
+#endif /* __OpenBSD__ */
+#endif /* DEBUG_NRL */
+
/*
* Globals.
*/