]> granicus.if.org Git - libnl/commitdiff
add missing IFLA_MASTER fillup
authorJiri Pirko <jpirko@redhat.com>
Mon, 7 Nov 2011 13:35:13 +0000 (14:35 +0100)
committerThomas Graf <tgraf@redhat.com>
Mon, 7 Nov 2011 13:58:53 +0000 (14:58 +0100)
this makes all set_master functions work.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
lib/route/link.c

index 6d9b8e913751bdcff6a5631651a8b2ada8282ef5..e486b3f8ab4e4b36a5880c965a4525eabc6ce5d1 100644 (file)
@@ -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;