]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Correct address test, thanks to Michał Kępień.
authorRoy Marples <roy@marples.name>
Thu, 25 Jun 2015 15:39:04 +0000 (15:39 +0000)
committerRoy Marples <roy@marples.name>
Thu, 25 Jun 2015 15:39:04 +0000 (15:39 +0000)
Partial fix for [0bd01a312d].

ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 2db5816cee94311100b6dea4640ee2859bdc1024..73ccb8813ed384a548f3120dec4ce6ad8a32e29f 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -749,7 +749,7 @@ int
 ipv6_publicaddr(const struct ipv6_addr *ia)
 {
        return (ia->prefix_pltime &&
-           (ia->addr.s6_addr[0] & 0xfe) != 0xc &&
+           (ia->addr.s6_addr[0] & 0xfe) != 0xfc &&
            !(ia->addr_flags & IN6_IFF_NOTUSEABLE));
 }