diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-20 19:57:36 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-23 18:58:35 -0300 |
| commit | 52dd3aa483441880ac46eb4bb50069d26dbecf13 (patch) | |
| tree | 07765fedaa8990f775a4a1baee54ae711759cb68 /lib/mpls.h | |
| parent | c8f9e916df033897ee8878d970887a7d9bb07a2b (diff) | |
zapi: add support for routes with multiple labels
This will be necessary for the Segment Routing feature.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/mpls.h')
| -rw-r--r-- | lib/mpls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mpls.h b/lib/mpls.h index 025770d479..bf98eecd81 100644 --- a/lib/mpls.h +++ b/lib/mpls.h @@ -44,6 +44,9 @@ #define MPLS_DEFAULT_MIN_SRGB_LABEL 16000 #define MPLS_DEFAULT_MAX_SRGB_LABEL 23999 +/* Maximum # labels that can be pushed. */ +#define MPLS_MAX_LABELS 16 + #define IS_MPLS_RESERVED_LABEL(label) \ (label >= MPLS_MIN_RESERVED_LABEL && label <= MPLS_MAX_RESERVED_LABEL) |
