summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/parser.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2019-06-28 12:12:06 +0000
committerclaudio <claudio@openbsd.org>2019-06-28 12:12:06 +0000
commit989b70ca64ee2426abbc94468c551fcae46982b8 (patch)
tree600682229e7e0790cc20dc910eab061a0f10c0a8 /usr.sbin/bgpctl/parser.c
parentReset rpending (read pending) indicator for a peer when the peer goes down (diff)
downloadwireguard-openbsd-989b70ca64ee2426abbc94468c551fcae46982b8.tar.xz
wireguard-openbsd-989b70ca64ee2426abbc94468c551fcae46982b8.zip
The bgpctl parser can not handle neighbor and neighbors at the same time.
It will always complain that neighbor is ambiguous. Switch neighbors to peers to resolve the issue.
Diffstat (limited to 'usr.sbin/bgpctl/parser.c')
-rw-r--r--usr.sbin/bgpctl/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index 5e56ed2722d..e984596d4d9 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.97 2019/06/25 07:44:20 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.98 2019/06/28 12:12:06 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -202,7 +202,7 @@ static const struct token t_show_mrt[] = {
{ FLAG, "detail", F_CTL_DETAIL, 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},
+ { FLAG, "peers", F_CTL_NEIGHBORS,t_show_mrt},
{ KEYWORD, "file", NONE, t_show_mrt_file},
{ FAMILY, "", NONE, t_show_mrt},
{ PREFIX, "", NONE, t_show_prefix},