summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-08-22 14:18:37 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-08-22 14:18:37 +0000
commit41f3695b2da487bf9cf075aaa3778aecbd983ca1 (patch)
tree312a2315f5e787ece3231b20683728dfcbae8b88 /sys
parentc31ac6a5afbf940eae73a23ee5d0b8cffc799b4b (diff)
IPCOMP policy stuff missed the last time round
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_output.c3
-rw-r--r--sys/netinet6/ip6_output.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 672c0da7bfb..641efd2c8d0 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.135 2001/08/21 06:53:36 angelos Exp $ */
+/* $OpenBSD: ip_output.c,v 1.136 2001/08/22 14:18:36 niklas Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1021,6 +1021,7 @@ ip_ctloutput(op, so, level, optname, mp)
case IP_AUTH_LEVEL:
case IP_ESP_TRANS_LEVEL:
case IP_ESP_NETWORK_LEVEL:
+ case IP_IPCOMP_LEVEL:
#ifndef IPSEC
error = EOPNOTSUPP;
#else
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 60245ef8e8f..939533952b5 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_output.c,v 1.48 2001/08/22 06:52:01 niklas Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.49 2001/08/22 14:18:36 niklas Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
@@ -1637,6 +1637,7 @@ ip6_ctloutput(op, so, level, optname, mp)
case IPV6_AUTH_LEVEL:
case IPV6_ESP_TRANS_LEVEL:
case IPV6_ESP_NETWORK_LEVEL:
+ case IPV6_IPCOMP_LEVEL:
#ifndef IPSEC
m->m_len = sizeof(int);
*mtod(m, int *) = IPSEC_LEVEL_NONE;
@@ -1656,6 +1657,10 @@ ip6_ctloutput(op, so, level, optname, mp)
optval =
inp->inp_seclevel[SL_ESP_NETWORK];
break;
+
+ case IP_IPCOMP_LEVEL:
+ optval = inp->inp_seclevel[SL_IPCOMP];
+ break;
}
*mtod(m, int *) = optval;
#endif