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>
This commit is contained in:
Thomas Haller 2013-10-22 10:38:14 +02:00 committed by Thomas Graf
parent d976e2e62b
commit 549010c52a

View file

@ -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)