diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-03 17:01:54 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-01-03 17:01:54 +0100 |
commit | b28431e557c4f63923476094a919a0630001275e (patch) | |
tree | 0be1f9c6c1283fb6c4c258dd47c75575873de3ab /nest/rt-attr.c | |
parent | d3f50ede127df338f575e188566035b2a46cf6c6 (diff) |
Nest: Fix leaking internal attributes in RIP and Babel
During backporting attribute changes from 3.0-branch, some internal
attributes (RIP iface and Babel seqno) leaked to 'show route all' output.
Allow protocols to hide specific attributes with GA_HIDDEN value.
Thanks to Nigel Kukard for the bugreport.
Diffstat (limited to 'nest/rt-attr.c')
-rw-r--r-- | nest/rt-attr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 22b45db9..d793c72e 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -981,7 +981,9 @@ ea_show(struct cli *c, const eattr *e) bsprintf(pos, "<type %02x>", e->type); } } - cli_printf(c, -1012, "\t%s", buf); + + if (status != GA_HIDDEN) + cli_printf(c, -1012, "\t%s", buf); } /** |