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:
parent
d976e2e62b
commit
549010c52a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue