diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-07-21 10:27:52 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-07-21 10:27:52 (GMT) |
commit | dea6de42f69a5137544723f7a96bc097adbbdd29 (patch) | |
tree | 08266de83fdb55c6ac78ad5ad081798c29dfaadf | |
parent | 7d484555f6db215ebd506c2e0e808aea9f93997d (diff) | |
download | libnl-dea6de42f69a5137544723f7a96bc097adbbdd29.zip libnl-dea6de42f69a5137544723f7a96bc097adbbdd29.tar.gz libnl-dea6de42f69a5137544723f7a96bc097adbbdd29.tar.bz2 |
Include IFLA_LINK in link messages
-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 0295666..8406edc 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -1073,6 +1073,9 @@ static int build_link_msg(int cmd, struct ifinfomsg *hdr, if (link->ce_mask & LINK_ATTR_IFALIAS) NLA_PUT_STRING(msg, IFLA_IFALIAS, link->l_ifalias); + if (link->ce_mask & LINK_ATTR_LINK) + NLA_PUT_U32(msg, IFLA_LINK, link->l_link); + if ((link->ce_mask & LINK_ATTR_LINKINFO) && link->l_info_ops) { struct nlattr *info; |