From 575ce65d9fd648239ff8574c13bf2da370518d04 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 29 Apr 2014 15:24:48 +0200 Subject: [PATCH] interface-ip: fix misuse of IN6_IS_ADDR_LINKLOCAL on a netifd specific union Signed-off-by: Felix Fietkau --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2