diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-06-01 19:19:30 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:12 +0200 |
commit | ce54994727bf237e0f89168d6818b04ea79f090d (patch) | |
tree | bd363cc85b7031136d4d8d51407ed7bd8c737cc3 /lib/mpls.h | |
parent | ldpd: add vtysh support (diff) | |
download | frr-ce54994727bf237e0f89168d6818b04ea79f090d.tar.xz frr-ce54994727bf237e0f89168d6818b04ea79f090d.zip |
mpls: add support for LDP LSPs
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/mpls.h')
-rw-r--r-- | lib/mpls.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/mpls.h b/lib/mpls.h index 5a67b915d..1f77aaa53 100644 --- a/lib/mpls.h +++ b/lib/mpls.h @@ -75,8 +75,17 @@ 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; +#define MPLS_NO_LABEL 0xFFFFFFFF #define MPLS_INVALID_LABEL 0xFFFFFFFF +/* LSP types. */ +enum lsp_types_t +{ + ZEBRA_LSP_NONE = 0, /* No LSP. */ + ZEBRA_LSP_STATIC = 1, /* Static LSP. */ + ZEBRA_LSP_LDP = 2 /* LDP LSP. */ +}; + /* Functions for basic label operations. */ /* Encode a label stack entry from fields; convert to network byte-order as |