From owner-svn-src-user@FreeBSD.ORG Wed Dec 18 21:29:24 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 274AE62C; Wed, 18 Dec 2013 21:29:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 11C7A1674; Wed, 18 Dec 2013 21:29:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBILTNEu080296; Wed, 18 Dec 2013 21:29:23 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBILTNhb080295; Wed, 18 Dec 2013 21:29:23 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201312182129.rBILTNhb080295@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Wed, 18 Dec 2013 21:29:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r259575 - user/ae/inet6/sys/netinet6 X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 21:29:24 -0000 Author: ae Date: Wed Dec 18 21:29:23 2013 New Revision: 259575 URL: http://svnweb.freebsd.org/changeset/base/259575 Log: If socket is already bound to the source, no need to apply jail's restrictions to it. 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 Wed Dec 18 21:23:16 2013 (r259574) +++ user/ae/inet6/sys/netinet6/in6_src.c Wed Dec 18 21:29:23 2013 (r259575) @@ -677,13 +677,6 @@ in6_selectsrc(struct sockaddr_in6 *dst, * Otherwise, if the socket has already bound the source, just use it. */ if (inp != NULL && !IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr)) { -#if 0 /* XXX: Jail support. */ - if (cred != NULL && - (error = prison_local_ip6(cred, &inp->in6p_laddr, - ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0))) != 0) - return (error); - bcopy(&inp->in6p_laddr, srcp, sizeof(*srcp)); -#endif if (ro == &ro6) RO_RTFREE(ro); *srcp = inp->in6p_laddr;