summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2011-09-28 11:22:43 +0000
committerSteven Barth <steven@midlink.org>2011-09-28 11:22:43 +0000
commit1c669b1e235dd6662a6165fe8bc6ae069da22de4 (patch)
tree51e5f9409d4e02f6757b97b172ae05333a042894 /system-linux.c
parent6d99c7d319393a0a1bf1cc091ab60568f8f70a99 (diff)
system-linux: use correct netlink attribute for address management
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
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);
}