]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Display neighbor port on show protocol
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 May 2022 14:21:34 +0000 (16:21 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 May 2022 14:21:34 +0000 (16:21 +0200)
proto/bgp/bgp.c

index 619a816b468a03e131d7e3e0adb2a62268f8b7fa..89507f1aaf68ebf7327436c085bd5b6875aa42ea 100644 (file)
@@ -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);