From 1c669b1e235dd6662a6165fe8bc6ae069da22de4 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 28 Sep 2011 11:22:43 +0000 Subject: [PATCH] system-linux: use correct netlink attribute for address management --- system-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0