summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-12-03 10:34:25 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-12-03 10:34:25 +0000
commitcb2fdd538fe1f0230cc6666fb532eecfe9be16d2 (patch)
tree5daaa91e1d20f53aca637ed1beddf92e485452f7 /sys/netinet6
parenta0cc9fb228735ad562bb8db9a1fa8c8efd6a2722 (diff)
rm unused kernel only IPV6_RECVRTHDRDSTOPTS sockopt. ok deraadt sthen
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h5
-rw-r--r--sys/netinet6/ip6_output.c12
2 files changed, 2 insertions, 15 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 0eb366f587c..6e10b7bf9bc 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.86 2015/10/29 16:04:10 tedu Exp $ */
+/* $OpenBSD: in6.h,v 1.87 2015/12/03 10:34:24 tedu Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -315,9 +315,6 @@ struct route_in6 {
#define IPV6_RECVRTHDR 38 /* bool; recv routing header */
#define IPV6_RECVHOPOPTS 39 /* bool; recv hop-by-hop option */
#define IPV6_RECVDSTOPTS 40 /* bool; recv dst option after rthdr */
-#ifdef _KERNEL
-#define IPV6_RECVRTHDRDSTOPTS 41 /* bool; recv dst option before rthdr */
-#endif
#define IPV6_USE_MIN_MTU 42 /* bool; send packets at the minimum MTU */
#define IPV6_RECVPATHMTU 43 /* bool; notify an according MTU */
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 94d60b2fe3d..bdd1728305b 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_output.c,v 1.201 2015/12/02 13:29:26 claudio Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.202 2015/12/03 10:34:24 tedu Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
@@ -1229,7 +1229,6 @@ ip6_ctloutput(int op, struct socket *so, int level, int optname,
*/
case IPV6_RECVHOPOPTS:
case IPV6_RECVDSTOPTS:
- case IPV6_RECVRTHDRDSTOPTS:
if (!privileged) {
error = EPERM;
break;
@@ -1299,10 +1298,6 @@ do { \
OPTSET(IN6P_DSTOPTS);
break;
- case IPV6_RECVRTHDRDSTOPTS:
- OPTSET(IN6P_RTHDRDSTOPTS);
- break;
-
case IPV6_RECVRTHDR:
OPTSET(IN6P_RTHDR);
break;
@@ -1538,7 +1533,6 @@ do { \
case IPV6_RECVHOPOPTS:
case IPV6_RECVDSTOPTS:
- case IPV6_RECVRTHDRDSTOPTS:
case IPV6_UNICAST_HOPS:
case IPV6_RECVPKTINFO:
case IPV6_RECVHOPLIMIT:
@@ -1560,10 +1554,6 @@ do { \
optval = OPTBIT(IN6P_DSTOPTS);
break;
- case IPV6_RECVRTHDRDSTOPTS:
- optval = OPTBIT(IN6P_RTHDRDSTOPTS);
- break;
-
case IPV6_UNICAST_HOPS:
optval = inp->inp_hops;
break;