From: Felix Fietkau Date: Tue, 29 Apr 2014 13:24:48 +0000 (+0200) Subject: interface-ip: fix misuse of IN6_IS_ADDR_LINKLOCAL on a netifd specific union X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=575ce65d9fd648239ff8574c13bf2da370518d04;p=oweals%2Fnetifd.git interface-ip: fix misuse of IN6_IS_ADDR_LINKLOCAL on a netifd specific union Signed-off-by: Felix Fietkau --- diff --git a/interface-ip.c b/interface-ip.c index 208ec3f..018b657 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -1043,7 +1043,7 @@ write_resolv_conf_entries(FILE *f, struct interface_ip_settings *ip, const char if (!str) continue; - if (s->af == AF_INET6 && IN6_IS_ADDR_LINKLOCAL(&s->addr)) + if (s->af == AF_INET6 && IN6_IS_ADDR_LINKLOCAL(&s->addr.in6)) fprintf(f, "nameserver %s%%%s\n", str, dev); else fprintf(f, "nameserver %s\n", str);