diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-06-01 14:19:30 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 09:31:12 -0400 |
| commit | ce54994727bf237e0f89168d6818b04ea79f090d (patch) | |
| tree | bd363cc85b7031136d4d8d51407ed7bd8c737cc3 /lib/mpls.h | |
| parent | 4fcbf6e2d9a3c1f13d142e9b0dbd2369ec2b0bda (diff) | |
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 5a67b915d1..1f77aaa536 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 |
