[PATCH] route/link: Add missing link_attrs translations

Tobias Klauser tklauser at distanz.ch
Thu Aug 20 06:46:22 PDT 2015


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.

Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
---
 lib/route/link.c | 3 +++
 1 file changed, 3 insertions(+)

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)
-- 
2.5.0





More information about the libnl mailing list