From owner-svn-src-head@FreeBSD.ORG Fri Apr 17 15:25:09 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45DA6B63; Fri, 17 Apr 2015 15:25:09 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B26EC16F; Fri, 17 Apr 2015 15:25:07 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t3HFOwdW043124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 17 Apr 2015 18:24:58 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t3HFOwSU043123; Fri, 17 Apr 2015 18:24:58 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 17 Apr 2015 18:24:58 +0300 From: Gleb Smirnoff To: "Andrey V. Elsukov" Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r281649 - in head/sys: dev/cxgbe/tom netinet netinet6 Message-ID: <20150417152458.GN883@FreeBSD.org> References: <201504171157.t3HBv7rj027145@svn.freebsd.org> <5531052F.10706@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5531052F.10706@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 15:25:09 -0000 On Fri, Apr 17, 2015 at 04:05:51PM +0300, Andrey V. Elsukov wrote: A> On 17.04.2015 14:57, Gleb Smirnoff wrote: A> > Author: glebius A> > Date: Fri Apr 17 11:57:06 2015 A> > New Revision: 281649 A> > URL: https://svnweb.freebsd.org/changeset/base/281649 A> > A> > Log: A> > Provide functions to determine presence of a given address A> > configured on a given interface. A> > A> > +/* A> > + * Return 1 if an internet address is configured on an interface. A> > + */ A> > +int A> > +in6_ifhasaddr(struct ifnet *ifp, struct in6_addr *addr) A> > +{ A> > + struct in6_addr in6; A> > + struct ifaddr *ifa; A> > + struct in6_ifaddr *ia6; A> > + A> > + in6 = *addr; A> > + if (in6_clearscope(&in6) || in6_clearscope(&in6)) A> A> Why do you call in6_clearscope() twice? Just to be sure? :) Heh :) Missed this when copying from cxgbe(4). -- Totus tuus, Glebius.