summaryrefslogtreecommitdiff
path: root/lib/route/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/route/link.c')
-rw-r--r--lib/route/link.c3
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;