summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-03-22 10:25:49 +0000
committerclaudio <claudio@openbsd.org>2006-03-22 10:25:49 +0000
commit73d4348f7469f494987ade7820cebe45f97c4749 (patch)
tree2d76fc315f072444061cb75d7d769469d483565b /usr.sbin/bgpctl/parser.c
parentAdd a new SHOW imsg to send optional attributes to bgpctl. This can be used (diff)
downloadwireguard-openbsd-73d4348f7469f494987ade7820cebe45f97c4749.tar.xz
wireguard-openbsd-73d4348f7469f494987ade7820cebe45f97c4749.zip
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}