add missing IFLA_MASTER fillup

this makes all set_master functions work.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
This commit is contained in:
Jiri Pirko 2011-11-07 14:35:13 +01:00 committed by Thomas Graf
parent 03f3a58733
commit bd7000948d

View 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;