From: Ondrej Zajicek Date: Sat, 21 May 2022 14:21:34 +0000 (+0200) Subject: BGP: Display neighbor port on show protocol X-Git-Tag: v2.0.10~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9c19b923c886ddfaefd0fa5052d4799b80579e2;p=thirdparty%2Fbird.git BGP: Display neighbor port on show protocol --- diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 619a816b4..89507f1aa 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -2487,6 +2487,9 @@ bgp_show_proto_info(struct proto *P) else cli_msg(-1006, " Neighbor address: %I%J", p->remote_ip, p->cf->iface); + if ((p->conn == &p->outgoing_conn) && (p->cf->remote_port != BGP_PORT)) + cli_msg(-1006, " Neighbor port: %u", p->cf->remote_port); + cli_msg(-1006, " Neighbor AS: %u", p->remote_as); cli_msg(-1006, " Local AS: %u", p->cf->local_as);