From: Samuel Ortiz Date: Thu, 29 Jul 2010 21:00:19 +0000 (+0200) Subject: Skip IPv6 link-local addresses reporting X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~2577 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d700f69b7d50061ebcab967d321f09ef63ca0d9;p=profile%2Fivi%2Fconnman.git Skip IPv6 link-local addresses reporting --- diff --git a/src/rtnl.c b/src/rtnl.c index d8ea5df..83f7952 100644 --- a/src/rtnl.c +++ b/src/rtnl.c @@ -568,6 +568,9 @@ static void process_newaddr(unsigned char family, unsigned char prefixlen, struct in6_addr ipv6_address, ipv6_local; extract_ipv6_addr(msg, bytes, &ipv6_address, &ipv6_local); + if (IN6_IS_ADDR_LINKLOCAL(&ipv6_address)) + return; + src = &ipv6_address; } @@ -597,6 +600,9 @@ static void process_deladdr(unsigned char family, unsigned char prefixlen, struct in6_addr ipv6_address, ipv6_local; extract_ipv6_addr(msg, bytes, &ipv6_address, &ipv6_local); + if (IN6_IS_ADDR_LINKLOCAL(&ipv6_address)) + return; + src = &ipv6_address; }