summaryrefslogtreecommitdiffstats
path: root/lib/route/addr.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-10-22 08:38:14 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-10-22 12:24:56 (GMT)
commit549010c52adc9baceacbd07f09f51f1a9de69f7d (patch)
tree6c53d712aac7d62c71670c50e607f94a7d1c052e /lib/route/addr.c
parentd976e2e62bdaca2530f87e97730d03f93f662226 (diff)
downloadlibnl-549010c52adc9baceacbd07f09f51f1a9de69f7d.zip
libnl-549010c52adc9baceacbd07f09f51f1a9de69f7d.tar.gz
libnl-549010c52adc9baceacbd07f09f51f1a9de69f7d.tar.bz2
rtnl-addr: set ifa_flags when creating/updating address
Set the address flags when creating/updating an address with rtnl_addr_add/rtnl_addr_build_add_request. Before, the flags were not passed on. As of now, the flags except IFA_F_NODAD|IFA_F_HOMEADDRESS are ignored by the kernel. Still pass them on without filtering. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'lib/route/addr.c')
-rw-r--r--lib/route/addr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/route/addr.c b/lib/route/addr.c
index 71fca94..1ec298c 100644
--- a/lib/route/addr.c
+++ b/lib/route/addr.c
@@ -552,6 +552,7 @@ static int build_addr_msg(struct rtnl_addr *tmpl, int cmd, int flags,
.ifa_family = tmpl->a_family,
.ifa_index = tmpl->a_ifindex,
.ifa_prefixlen = tmpl->a_prefixlen,
+ .ifa_flags = tmpl->a_flags,
};
if (tmpl->ce_mask & ADDR_ATTR_SCOPE)