summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-30 15:36:54 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-30 15:36:54 +0200
commit45af19dd99b3c8f954621e09075e8be180e2f731 (patch)
tree2e25c82a8e13080d589c79ec0478e5127a9404fb /proto/bgp/bgp.c
parentef3a8138c909baf58c61ddf2edd815eab899d3a6 (diff)
parent652be92a21f5575e5f74f6abe98eb4200b86776c (diff)
Merge commit '652be92a21f5575e5f74f6abe98eb4200b86776c' into haugesund
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 220551f6..279c834b 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -2467,6 +2467,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);