summaryrefslogtreecommitdiff
path: root/sys/netinet6/raw_ipv6.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/raw_ipv6.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/raw_ipv6.c')
-rw-r--r--sys/netinet6/raw_ipv6.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/sys/netinet6/raw_ipv6.c b/sys/netinet6/raw_ipv6.c
index ddaab0ec8d9..e6ed96e4428 100644
--- a/sys/netinet6/raw_ipv6.c
+++ b/sys/netinet6/raw_ipv6.c
@@ -42,7 +42,7 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
* SUCH DAMAGE.
*
* @(#)raw_ip.c 8.7 (Berkeley) 5/15/95
- * $Id: raw_ipv6.c,v 1.2 1999/02/24 04:36:46 cmetz Exp $
+ * $Id: raw_ipv6.c,v 1.3 1999/03/09 05:31:55 cmetz Exp $
*/
#include <sys/param.h>
@@ -78,9 +78,12 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
#include <netinet6/ipv6_var.h>
#include <netinet6/icmpv6.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>
@@ -88,12 +91,15 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
#include <net/netproc_var.h>
#endif /* IPSEC */
-#ifdef DEBUG_NRL_SYS
+#ifdef DEBUG_NRL
#include <sys/debug.h>
-#endif /* DEBUG_NRL_SYS */
-#ifdef DEBUG_NRL_NETINET6
+#else /* DEBUG_NRL */
+#if __OpenBSD__
#include <netinet6/debug.h>
-#endif /* DEBUG_NRL_NETINET6 */
+#else /* __OpenBSD__ */
+#include <sys/debug.h>
+#endif /* __OpenBSD__ */
+#endif /* DEBUG_NRL */
/*
* Globals