aboutsummaryrefslogtreecommitdiffstats
path: root/netlink/librtnl/netns.h
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2018-04-11 05:55:38 +0000
committerGerrit Code Review <gerrit@fd.io>2018-04-11 05:55:38 +0000
commit9791ab9fa07347fd063a55dc44cc1b0b67ee2292 (patch)
treef271ebd670c242c3cde7157d0861fc2503feff2c /netlink/librtnl/netns.h
parentce5ab87645e7472b99e23686047e4141a7a315b0 (diff)
parent2ab698c963b12219aecf72d001ae28c173548933 (diff)
Merge "Add support for MPLS labels in router plugin"
Diffstat (limited to 'netlink/librtnl/netns.h')
-rw-r--r--netlink/librtnl/netns.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/netlink/librtnl/netns.h b/netlink/librtnl/netns.h
index fb87ac7..23f2dc2 100644
--- a/netlink/librtnl/netns.h
+++ b/netlink/librtnl/netns.h
@@ -25,6 +25,11 @@
#include <librtnl/rtnl.h>
+/*include it for 'struct mpls_label'*/
+#include <linux/mpls.h>
+/*so far depth is fixed, looking into ways to be dynamic*/
+#define MPLS_STACK_DEPTH 7
+
typedef struct {
struct ifinfomsg ifi;
u8 hwaddr[IFHWADDRLEN];
@@ -41,6 +46,7 @@ typedef struct {
struct rtmsg rtm;
u8 dst[16];
u8 src[16];
+ u8 via[16];
u8 prefsrc[16];
u32 iif;
u32 oif;
@@ -48,6 +54,7 @@ typedef struct {
u8 gateway[16];
u32 priority;
struct rta_cacheinfo cacheinfo;
+ struct mpls_label encap[MPLS_STACK_DEPTH];
f64 last_updated;
} ns_route_t;