diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2024-03-05 16:38:24 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2024-03-05 16:47:08 +0100 |
commit | 114be2af28e5c124bd479a487f89244ba99c272d (patch) | |
tree | 3123a81d097e70101414f06d190a1f1e850a503b /nest/rt-show.c | |
parent | 26dd61ee7f91c15157601b2404de5b6500a6061c (diff) |
Filter: Add route attribute gw_mpls_stack
Add route attribute gw_mpls_stack to make MPLS stack of route nexthop
accessible from filters. Its type is T_CLIST, which is really not correct
(as it is a list, while T_CLIST is a set). Therefore, we keep this
attribute *undocumented* and it will be *changed* without further notice.
Based on a patch from Trisha Biswas <tbiswas@fastly.com>, thanks!
Diffstat (limited to 'nest/rt-show.c')
-rw-r--r-- | nest/rt-show.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-show.c b/nest/rt-show.c index 265d5c44..fb71fba8 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -72,7 +72,7 @@ rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d, int primary if (a->dest == RTD_UNICAST) for (nh = &(a->nh); nh; nh = nh->next) { - char mpls[MPLS_MAX_LABEL_STACK*12 + 5], *lsp = mpls; + char mpls[MPLS_MAX_LABEL_STRING], *lsp = mpls; char *onlink = (nh->flags & RNF_ONLINK) ? " onlink" : ""; char weight[16] = ""; |