summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-05-23 14:12:07 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-05-23 14:12:07 +0000
commit63ffaa193a0fe56c93e6e0ca771cd5c6280a26bb (patch)
tree50583911acc4b5d1f9f2189898deb9b2ee740b3e /usr.sbin/bgpctl/parser.c
parent2fbe277c5a2e6cc5907aceed174a78c49074cfb3 (diff)
Implement bgpctl show mrt neighbors, a command to print the neighbor table
of MRT TABLE_DUMP_V2 dumps. It only works with TABLE_DUMP_V2 dumps on other table dumps the neighbor of the first entry is printed since those table dumps don't have a neighbor table. OK sthen@ benno@
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r--usr.sbin/bgpctl/parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index b2509458a80..3bb427cd623 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.93 2019/04/10 15:22:18 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.94 2019/05/23 14:12:06 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -210,8 +210,9 @@ static const struct token t_show_mrt[] = {
{ ASTYPE, "peer-as", AS_PEER, t_show_mrt_as},
{ ASTYPE, "empty-as", AS_EMPTY, t_show_mrt},
{ FLAG, "detail", F_CTL_DETAIL, t_show_mrt},
- { FLAG, "ssv" , F_CTL_SSV, t_show_mrt},
+ { FLAG, "ssv", F_CTL_SSV, t_show_mrt},
{ KEYWORD, "neighbor", NONE, t_show_mrt_neigh},
+ { FLAG, "neighbors", F_CTL_NEIGHBORS,t_show_mrt},
{ KEYWORD, "file", NONE, t_show_mrt_file},
{ FAMILY, "", NONE, t_show_mrt},
{ PREFIX, "", NONE, t_show_prefix},