summaryrefslogtreecommitdiff
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-12-06 04:19:27 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-12-06 04:19:27 +0000
commit8023af13dd5ebb30fcce296dd0e9f2e544af37cf (patch)
tree7b403e71105211ae653030edbdf67468cb878042 /sys/netinet6/raw_ip6.c
parent0e6a14b525327082c86ac36122179c0019839bda (diff)
remove kame IPSEC code within #ifdef.
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 579393ec27a..bca4c0814c6 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.5 2001/04/06 04:42:09 csapuntz Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.6 2001/12/06 04:19:26 itojun Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -93,14 +93,6 @@
#include <netinet6/scope6_var.h>
#endif
-#ifdef __OpenBSD__
-#undef IPSEC
-#endif
-
-#ifdef IPSEC
-#include <netinet6/ipsec.h>
-#endif /*IPSEC*/
-
#include <machine/stdarg.h>
#include "faith.h"
@@ -491,13 +483,6 @@ rip6_output(m, va_alist)
m_copyback(m, off, sizeof(sum), (caddr_t)&sum);
}
-#ifdef IPSEC
- if (ipsec_setsocket(m, so) != 0) {
- error = ENOBUFS;
- goto bad;
- }
-#endif /*IPSEC*/
-
flags = 0;
#ifdef IN6P_MINMTU
if (in6p->in6p_flags & IN6P_MINMTU)
@@ -621,13 +606,6 @@ rip6_usrreq(so, req, m, nam, control, p)
in6p = sotoin6pcb(so);
in6p->in6p_ip6.ip6_nxt = (long)nam;
in6p->in6p_cksum = -1;
-#ifdef IPSEC
- error = ipsec_init_policy(so, &in6p->in6p_sp);
- if (error != 0) {
- in6_pcbdetach(in6p);
- break;
- }
-#endif /*IPSEC*/
MALLOC(in6p->in6p_icmp6filt, struct icmp6_filter *,
sizeof(struct icmp6_filter), M_PCB, M_NOWAIT);