Date: Fri, 17 Apr 2015 16:05:51 +0300 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: Gleb Smirnoff <glebius@FreeBSD.org>, 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: <5531052F.10706@FreeBSD.org> In-Reply-To: <201504171157.t3HBv7rj027145@svn.freebsd.org> References: <201504171157.t3HBv7rj027145@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4fOFmAf355IAWSSO2X89tcs87NCqSlFXa Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 17.04.2015 14:57, Gleb Smirnoff wrote: > Author: glebius > Date: Fri Apr 17 11:57:06 2015 > New Revision: 281649 > URL: https://svnweb.freebsd.org/changeset/base/281649 >=20 > Log: > Provide functions to determine presence of a given address > configured on a given interface. > =20 > +/* > + * Return 1 if an internet address is configured on an interface. > + */ > +int > +in6_ifhasaddr(struct ifnet *ifp, struct in6_addr *addr) > +{ > + struct in6_addr in6; > + struct ifaddr *ifa; > + struct in6_ifaddr *ia6; > + > + in6 =3D *addr; > + if (in6_clearscope(&in6) || in6_clearscope(&in6)) Why do you call in6_clearscope() twice? Just to be sure? :) --=20 WBR, Andrey V. Elsukov --4fOFmAf355IAWSSO2X89tcs87NCqSlFXa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVMQUvAAoJEAHF6gQQyKF6Z74H/1wM3wc+ml1Gn0zvrjazLPMU UZBNFwgbCMUC5UKfUYOPMoAwp8rQyxwWCyn8XnT3qV6nPZ+lR2qKi3Clst2q+jRE BcihUdWrYlC9piGTi6/Bm1YeCpGg30/n8IvftyW5WBIWzWl6mskLZ6hoLwIlhcbH ScHM+dvLVQry8ohuiJlK5wPGQ4s+n61GRv9JRwJNLuIeGQ+sICjYExmuDS6pvFmh i1VPuy4/wBxKLsfTd4YpepLJbjCM3XPtNFL+u4JSrSa3zX5rr6W5AYhLaBw/m7HC DpvYOhI+bwVsJfCiHOk4KjOG9tydPmvh2kL8kig3M9ivKc+aUi/2x2TRiqXxAWU= =BCBh -----END PGP SIGNATURE----- --4fOFmAf355IAWSSO2X89tcs87NCqSlFXa--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5531052F.10706>