diff options
author | Jiri Pirko <jpirko@redhat.com> | 2011-11-07 13:35:13 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2011-11-07 13:58:53 (GMT) |
commit | bd7000948d85beb8eab2f163a9f1ea9e6dc6a009 (patch) | |
tree | 80d2b7c74b818c23e9de800a9a081157ad04bf93 | |
parent | 03f3a58733bf3e414e00dbc9e1c765410079fee2 (diff) | |
download | libnl-bd7000948d85beb8eab2f163a9f1ea9e6dc6a009.zip libnl-bd7000948d85beb8eab2f163a9f1ea9e6dc6a009.tar.gz libnl-bd7000948d85beb8eab2f163a9f1ea9e6dc6a009.tar.bz2 |
add missing IFLA_MASTER fillup
this makes all set_master functions work.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
-rw-r--r-- | lib/route/link.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/link.c b/lib/route/link.c index 6d9b8e9..e486b3f 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -1112,6 +1112,9 @@ static int build_link_msg(int cmd, struct ifinfomsg *hdr, if (link->ce_mask & LINK_ATTR_LINK) NLA_PUT_U32(msg, IFLA_LINK, link->l_link); + if (link->ce_mask & LINK_ATTR_MASTER) + NLA_PUT_U32(msg, IFLA_MASTER, link->l_master); + if ((link->ce_mask & LINK_ATTR_LINKINFO) && link->l_info_ops) { struct nlattr *info; |