summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
Diffstat (limited to 'nest')
-rw-r--r--nest/protocol.h1
-rw-r--r--nest/rt-attr.c4
2 files changed, 4 insertions, 1 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
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);
}
/**