svn commit: r259798 - user/ae/inet6/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Mon Dec 23 22:38:00 UTC 2013
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;
More information about the svn-src-user
mailing list