X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=system-linux.c;h=f6e1058fa85bccf5d8d5daa9dbd8294e2dd878b7;hb=4f2a541e99b381c39b822ddaffb8f3941217463a;hp=cee41f505dfb20a0039f6b1a521a4a55b82ed6bd;hpb=735244cf3ca5bf37f185e8cf52862c1be96b5c21;p=project%2Fnetifd.git diff --git a/system-linux.c b/system-linux.c index cee41f5..f6e1058 100644 --- a/system-linux.c +++ b/system-linux.c @@ -203,7 +203,7 @@ static int system_addr(struct device *dev, struct device_addr *addr, int cmd) return -1; nlmsg_append(msg, &ifa, sizeof(ifa), 0); - nla_put(msg, IFA_ADDRESS, alen, &addr->addr); + nla_put(msg, IFA_LOCAL, alen, &addr->addr); return system_rtnl_call(msg); }