summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-03-22 10:25:50 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-03-22 10:25:50 +0000
commitfc0674742692b6a560882734c3e0c0926fd33500 (patch)
tree3fc467ff1ed3f93ad099ccf9258a7b411e631916 /usr.sbin/bgpctl/parser.c
parenta0c23b70e67fe2df6df71f4a92cc2af672777c76 (diff)
Detailed RIB output including communities. Detailed output is enabled via
the "detailed" keyword. Currently only works for IP or prefix lookups like "bgpctl show rib detail 199.185.137.3". Requested by many, looks good henning@
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r--usr.sbin/bgpctl/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index ce689fac66d..61c93a3f69f 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.28 2006/02/09 16:08:28 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.29 2006/03/22 10:25:49 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -130,6 +130,7 @@ static const struct token t_show_rib[] = {
{ ASTYPE, "transit-as", AS_TRANSIT, t_show_as},
{ ASTYPE, "empty-as", AS_EMPTY, NULL},
{ KEYWORD, "summary", SHOW_SUMMARY, NULL},
+ { FLAG, "detail", F_CTL_DETAIL, t_show_rib},
{ KEYWORD, "memory", SHOW_RIB_MEM, NULL},
{ FAMILY, "", NONE, NULL},
{ ENDTOKEN, "", NONE, NULL}