diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-08-22 22:01:54 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-08-22 22:37:58 +0200 |
commit | 5e8c8947e3fb53d2fdbdf804c6014d6ecdb0b904 (patch) | |
tree | 6d88033457ec6eb6022ba189b90afc47827f85d1 /zebra/zebra_mpls.h | |
parent | Merge pull request #1025 from qlyoung/no-ospf (diff) | |
download | frr-5e8c8947e3fb53d2fdbdf804c6014d6ecdb0b904.tar.xz frr-5e8c8947e3fb53d2fdbdf804c6014d6ecdb0b904.zip |
zebra: increase maximum label stack depth
* Bump MPLS_MAX_LABELS from 2 to 16;
* Adjust the static_nh_label structure and the mpls_label2str() function;
* On OpenBSD, print an error message when trying to push more than one
label at once (kernel limitation). While here, add support for MPLSv6
FTNs in OpenBSD.
This is not the full package. We still can't pop multiple labels at once,
or do things like swap a label and push other ones. We'll address that
in the future.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_mpls.h')
-rw-r--r-- | zebra/zebra_mpls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index c8dab3921..6bddc4d00 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -37,7 +37,7 @@ /* Definitions and macros. */ -#define MPLS_MAX_LABELS 2 /* Maximum # labels that can be pushed. */ +#define MPLS_MAX_LABELS 16 /* Maximum # labels that can be pushed. */ #define NHLFE_FAMILY(nhlfe) \ (((nhlfe)->nexthop->type == NEXTHOP_TYPE_IPV6 \ |