svn commit: r281649 - in head/sys: dev/cxgbe/tom netinet netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Fri Apr 17 13:07:28 UTC 2015
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
>
> Log:
> Provide functions to determine presence of a given address
> configured on a given interface.
>
> +/*
> + * 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 = *addr;
> + if (in6_clearscope(&in6) || in6_clearscope(&in6))
Why do you call in6_clearscope() twice? Just to be sure? :)
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20150417/73f3c28f/attachment.sig>
More information about the svn-src-head
mailing list