diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-21 22:11:50 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-22 17:55:22 +0100 |
commit | 8ecdb26ec08cc66ade06e3d325fceaae7bed76f2 (patch) | |
tree | 4b057889f07c7e04293f3529d5c2a22f6f320d3d /lib/mpls.h | |
parent | Merge pull request #1651 from donaldsharp/redhat_build_fpm (diff) | |
download | frr-8ecdb26ec08cc66ade06e3d325fceaae7bed76f2.tar.xz frr-8ecdb26ec08cc66ade06e3d325fceaae7bed76f2.zip |
lib, zebra: Rename and place appropriately the label stack
Fix and rename the label stack to be better named.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/mpls.h')
-rw-r--r-- | lib/mpls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mpls.h b/lib/mpls.h index bf98eecd8..6ef00375e 100644 --- a/lib/mpls.h +++ b/lib/mpls.h @@ -81,6 +81,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 |