summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-12-06 12:03:10 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-12-06 15:08:36 +0100
commit598e35dcd9c6cd7c2ee5bbfc1782c26106856376 (patch)
tree6720bb62c5ccc6c0459acc7d1b37d1fa67370745 /include
parent1eb0c1c8dc2c32197ed11b54b37e12ec550b200b (diff)
downloadlibnl-598e35dcd9c6cd7c2ee5bbfc1782c26106856376.tar.gz
link: add support for IFLA_PHYS_SWITCH_ID
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'include')
-rw-r--r--include/netlink-private/types.h1
-rw-r--r--include/netlink/route/link.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink-private/types.h b/include/netlink-private/types.h
index 0bfdbd2d..06eeb712 100644
--- a/include/netlink-private/types.h
+++ b/include/netlink-private/types.h
@@ -222,6 +222,7 @@ struct rtnl_link
struct rtnl_link_af_ops * l_af_ops;
struct nl_data * l_phys_port_id;
char l_phys_port_name[IFNAMSIZ];
+ struct nl_data * l_phys_switch_id;
int l_ns_fd;
pid_t l_ns_pid;
struct rtnl_link_vf * l_vf_list;
diff --git a/include/netlink/route/link.h b/include/netlink/route/link.h
index 09f9603f..bf83b216 100644
--- a/include/netlink/route/link.h
+++ b/include/netlink/route/link.h
@@ -236,6 +236,8 @@ extern struct nl_data * rtnl_link_get_phys_port_id(struct rtnl_link *);
extern char* rtnl_link_get_phys_port_name(struct rtnl_link *);
+extern struct nl_data * rtnl_link_get_phys_switch_id(struct rtnl_link *);
+
extern void rtnl_link_set_ns_fd(struct rtnl_link *, int);
extern int rtnl_link_get_ns_fd(struct rtnl_link *);
extern void rtnl_link_set_ns_pid(struct rtnl_link *, pid_t);