summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-01-03 17:01:54 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2023-01-03 17:01:54 +0100
commitb28431e557c4f63923476094a919a0630001275e (patch)
tree0be1f9c6c1283fb6c4c258dd47c75575873de3ab /nest/protocol.h
parentd3f50ede127df338f575e188566035b2a46cf6c6 (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/protocol.h')
-rw-r--r--nest/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 46744357..fcbf0539 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -94,6 +94,7 @@ void protos_dump_all(void);
#define GA_UNKNOWN 0 /* Attribute not recognized */
#define GA_NAME 1 /* Result = name */
#define GA_FULL 2 /* Result = both name and value */
+#define GA_HIDDEN 3 /* Attribute should not be printed */
/*
* Known protocols