diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-21 00:57:36 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-23 23:58:35 +0200 |
commit | 52dd3aa483441880ac46eb4bb50069d26dbecf13 (patch) | |
tree | 07765fedaa8990f775a4a1baee54ae711759cb68 /lib/mpls.h | |
parent | babeld: unify kernel_route_v4() and kernel_route_v6() (diff) | |
download | frr-52dd3aa483441880ac46eb4bb50069d26dbecf13.tar.xz frr-52dd3aa483441880ac46eb4bb50069d26dbecf13.zip |
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 025770d47..bf98eecd8 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) |