summaryrefslogtreecommitdiff
path: root/zebra/zebra_mpls.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-08-22 17:01:54 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-08-22 17:37:58 -0300
commit5e8c8947e3fb53d2fdbdf804c6014d6ecdb0b904 (patch)
tree6d88033457ec6eb6022ba189b90afc47827f85d1 /zebra/zebra_mpls.h
parent1d84515ca9d0a5e543be7e8e7ca9afc8b744e662 (diff)
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h
index c8dab39210..6bddc4d00f 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 \