summaryrefslogtreecommitdiffstats
path: root/lib/mpls.h
diff options
context:
space:
mode:
authorOlivier Dugeon <olivier.dugeon@orange.com>2018-01-30 11:43:25 +0100
committerOlivier Dugeon <olivier.dugeon@orange.com>2018-01-30 11:43:25 +0100
commitdab8b7a81c42c62a3effbcf157ff6a125871792c (patch)
treeb6d84054818466bd1ba72ad401272e668cb6b07d /lib/mpls.h
parentOSPFd: Correct compilation error (diff)
parentMerge pull request #1688 from chiragshah6/mdev (diff)
downloadfrr-dab8b7a81c42c62a3effbcf157ff6a125871792c.tar.xz
frr-dab8b7a81c42c62a3effbcf157ff6a125871792c.zip
Merge remote-tracking 'frr/master' into SR-Routing
Diffstat (limited to 'lib/mpls.h')
-rw-r--r--lib/mpls.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mpls.h b/lib/mpls.h
index 9d103e669..95882c26e 100644
--- a/lib/mpls.h
+++ b/lib/mpls.h
@@ -89,6 +89,12 @@ typedef unsigned int mpls_lse_t;
/* MPLS label value as a 32-bit (mostly we only care about the label value). */
typedef unsigned int mpls_label_t;
+struct mpls_label_stack {
+ uint8_t num_labels;
+ uint8_t reserved[3];
+ mpls_label_t label[0]; /* 1 or more labels */
+};
+
/* The MPLS explicit-null label is 0 which means when you memset a mpls_label_t
* to zero you have set that variable to explicit-null which was probably not
* your intent. The work-around is to use one bit to indicate if the