summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-02-12 10:03:08 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-02-12 10:03:08 +0000
commit966c05a9cf8af5b49092c3f64b4891890b089fa4 (patch)
tree15606a896d3047af48ccfbe0c2ea2e8ab6627ef7 /sys/netinet6
parent718ccd4b14452c1f985cc7cb749441e8cd4c04d2 (diff)
Kill a never defined old compatibility goo from 12 years ago.
ok mikeb@, bluhm@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 99ca80f3e51..a4bfd9f0568 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.131 2014/01/22 13:19:12 mpi Exp $ */
+/* $OpenBSD: in6.c,v 1.132 2014/02/12 10:03:07 mpi Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -808,10 +808,6 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra,
* must be 128.
*/
if (ifra->ifra_dstaddr.sin6_family == AF_INET6) {
-#ifdef FORCE_P2PPLEN
- int i;
-#endif
-
if ((ifp->if_flags & (IFF_POINTOPOINT|IFF_LOOPBACK)) == 0) {
/* XXX: noisy message */
nd6log((LOG_INFO, "in6_update_ifa: a destination can "
@@ -821,22 +817,7 @@ in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra,
if (plen != 128) {
nd6log((LOG_INFO, "in6_update_ifa: prefixlen should "
"be 128 when dstaddr is specified\n"));
-#ifdef FORCE_P2PPLEN
- /*
- * To be compatible with old configurations,
- * such as ifconfig gif0 inet6 2001::1 2001::2
- * prefixlen 126, we override the specified
- * prefixmask as if the prefix length was 128.
- */
- ifra->ifra_prefixmask.sin6_len =
- sizeof(struct sockaddr_in6);
- for (i = 0; i < 4; i++)
- ifra->ifra_prefixmask.sin6_addr.s6_addr32[i] =
- 0xffffffff;
- plen = 128;
-#else
return (EINVAL);
-#endif
}
}
/* lifetime consistency check */