svn commit: r281649 - in head/sys: dev/cxgbe/tom netinet netinet6

Gleb Smirnoff glebius at FreeBSD.org
Fri Apr 17 15:25:09 UTC 2015


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.


More information about the svn-src-all mailing list