Date: Fri, 17 Apr 2015 18:24:58 +0300 From: Gleb Smirnoff <glebius@FreeBSD.org> To: "Andrey V. Elsukov" <ae@FreeBSD.org> 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> In-Reply-To: <5531052F.10706@FreeBSD.org> References: <201504171157.t3HBv7rj027145@svn.freebsd.org> <5531052F.10706@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150417152458.GN883>