summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-24 14:27:19 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-24 14:27:19 +0200
commitcac9e917ebcf8551f2fe05295ddeeae69a352f5f (patch)
tree3bd6fc25b634a91130b25d7d76f6b57d819f0c4c /bgpd
parentdoc: Add 'show thread cpu' and 'show thread poll' documentation (diff)
downloadfrr-cac9e917ebcf8551f2fe05295ddeeae69a352f5f.tar.xz
frr-cac9e917ebcf8551f2fe05295ddeeae69a352f5f.zip
bgpd: Display FD used for peer
When issuing a `show bgp neighbor...` command display to the end user the FD used for communication. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 2a08619ec..ae51f1d78 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -10909,11 +10909,11 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
if (p->password)
vty_out(vty, "Peer Authentication Enabled\n");
- vty_out(vty, "Read thread: %s Write thread: %s\n",
+ vty_out(vty, "Read thread: %s Write thread: %s FD used: %d\n",
p->t_read ? "on" : "off",
CHECK_FLAG(p->thread_flags, PEER_THREAD_WRITES_ON)
? "on"
- : "off");
+ : "off", p->fd);
}
if (p->notify.code == BGP_NOTIFY_OPEN_ERR