diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-29 15:24:48 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-29 15:24:48 +0200 |
commit | 575ce65d9fd648239ff8574c13bf2da370518d04 (patch) | |
tree | 76c40a536bccb7f0066f9d74c6d485e75f5bfb5f | |
parent | f96536b6e6a453545b92cb1dda8c6bb420a371a7 (diff) |
interface-ip: fix misuse of IN6_IS_ADDR_LINKLOCAL on a netifd specific union
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | interface-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |