diff options
| author | 2019-05-23 14:12:06 +0000 | |
|---|---|---|
| committer | 2019-05-23 14:12:06 +0000 | |
| commit | b5cff06c0f36432d9e937f1187f458aec8d97e4e (patch) | |
| tree | 0976e186c53dc6701ff3ebca766dad56f12f0567 /usr.sbin/bgpctl/parser.c | |
| parent | Add F_CTL_NEIGHBORS a flag only used in bgpctl's mrt parsing code. (diff) | |
| download | wireguard-openbsd-b5cff06c0f36432d9e937f1187f458aec8d97e4e.tar.xz wireguard-openbsd-b5cff06c0f36432d9e937f1187f458aec8d97e4e.zip | |
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.c | 5 |
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}, |
