From 549010c52adc9baceacbd07f09f51f1a9de69f7d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 22 Oct 2013 10:38:14 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Graf --- lib/route/addr.c | 1 + 1 file changed, 1 insertion(+) 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)