summaryrefslogtreecommitdiffstats
path: root/lib/route/link.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-08-20 13:46:22 (GMT)
committerThomas Haller <thaller@redhat.com>2015-08-31 09:51:13 (GMT)
commitd3d610407d4066c861dca79915c4b1bff4795e60 (patch)
treea9e7622cf2ace09ba4d148dfbb11b9513f0521c5 /lib/route/link.c
parenteaa75b7c7d3e6a4df1a2e7591ae295acfae3f73e (diff)
downloadlibnl-d3d610407d4066c861dca79915c4b1bff4795e60.zip
libnl-d3d610407d4066c861dca79915c4b1bff4795e60.tar.gz
libnl-d3d610407d4066c861dca79915c4b1bff4795e60.tar.bz2
route/link: add missing link_attrs translations
Add LINK_ATTR_NSFD, LINK_ATTR_NS_PID and LINK_ATTR_LINK_NETNSID to the link_attrs translation table after they were added in commits 760bfabad8cd ("add link netns support") and 66aab65595fb ("route/link: add support for IFLA_LINK_NETNSID") respectively. http://lists.infradead.org/pipermail/libnl/2015-August/001959.html Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
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 81917d3..5c32550 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -986,6 +986,9 @@ static const struct trans_tbl link_attrs[] = {
__ADD(LINK_ATTR_GROUP, group),
__ADD(LINK_ATTR_CARRIER, carrier),
__ADD(LINK_ATTR_PHYS_PORT_ID, phys_port_id),
+ __ADD(LINK_ATTR_NS_FD, ns_fd),
+ __ADD(LINK_ATTR_NS_PID, ns_pid),
+ __ADD(LINK_ATTR_LINK_NETNSID, link_netnsid),
};
static char *link_attrs2str(int attrs, char *buf, size_t len)