Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 22:37:59 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r259798 - user/ae/inet6/sys/netinet6
Message-ID:  <201312232237.rBNMbxY1077884@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Dec 23 22:37:59 2013
New Revision: 259798
URL: http://svnweb.freebsd.org/changeset/base/259798

Log:
  Remove handling for an impossible case.

Modified:
  user/ae/inet6/sys/netinet6/in6_src.c

Modified: user/ae/inet6/sys/netinet6/in6_src.c
==============================================================================
--- user/ae/inet6/sys/netinet6/in6_src.c	Mon Dec 23 22:31:40 2013	(r259797)
+++ user/ae/inet6/sys/netinet6/in6_src.c	Mon Dec 23 22:37:59 2013	(r259798)
@@ -644,24 +644,6 @@ oif_found:
 			RO_RTFREE(ro);
 		return (EADDRNOTAVAIL);
 	}
-#if 0
-	/*
-	 * At this point at least one of the addresses belonged to the jail
-	 * but it could still be, that we want to further restrict it, e.g.
-	 * theoratically IN6_IS_ADDR_LOOPBACK.
-	 * It must not be IN6_IS_ADDR_UNSPECIFIED anymore.
-	 * prison_local_ip6() will fix an IN6_IS_ADDR_LOOPBACK but should
-	 * let all others previously selected pass.
-	 * Use tmp to not change ::1 on lo0 to the primary jail address.
-	 */
-	tmp = ia->ia_addr.sin6_addr;
-	if (cred != NULL && prison_local_ip6(cred, &tmp, (inp != NULL &&
-	    (inp->inp_flags & IN6P_IPV6_V6ONLY) != 0)) != 0) {
-		IN6_IFADDR_RUNLOCK();
-		IP6STAT_INC(ip6s_sources_none);
-		return (EADDRNOTAVAIL);
-	}
-#endif
 	*ifpp = ifp;
 	*srcp = best.ia->ia_addr.sin6_addr;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312232237.rBNMbxY1077884>