diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2022-05-21 16:21:34 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2022-05-21 16:21:34 +0200 |
commit | a9c19b923c886ddfaefd0fa5052d4799b80579e2 (patch) | |
tree | 8e7ce0ee10054a689c58de60b891d8f2680921b7 /proto | |
parent | 7bb06b34a110bbf40e7308eb19f32202a66d58ba (diff) |
BGP: Display neighbor port on show protocol
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bgp/bgp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 619a816b..89507f1a 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); |