From 031c24f2a96b5ec78bb6d9dccd929a3b4bfc5e4f Mon Sep 17 00:00:00 2001 From: vivek Date: Sun, 25 Oct 2020 21:05:17 -0700 Subject: [PATCH] bgpd: Add more debug info for incoming connection Signed-off-by: Vivek Venkatraman --- bgpd/bgp_network.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index 9582ec01ed..b43f8c8664 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -530,8 +530,10 @@ static void bgp_accept(struct thread *thread) } if (bgp_debug_neighbor_events(peer1)) - zlog_debug("[Event] BGP connection from host %s fd %d", - inet_sutop(&su, buf), bgp_sock); + zlog_debug( + "[Event] connection from %s fd %d, active peer status %d fd %d", + inet_sutop(&su, buf), bgp_sock, peer1->status, + peer1->fd); if (peer1->doppelganger) { /* We have an existing connection. Kill the existing one and run