From 8b5459cf05c9e17444de2fafa2aa19399bd9ae92 Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Tue, 31 Dec 2019 11:32:25 +0100 Subject: [PATCH] Add additional debug lines --- bgpq_expander.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bgpq_expander.c b/bgpq_expander.c index b7bf8a6..175748c 100644 --- a/bgpq_expander.c +++ b/bgpq_expander.c @@ -911,6 +911,8 @@ bgpq_expand(struct bgpq_expander* b) b->fd = fd; + SX_DEBUG(debug_expander, "Sending '!!' to server to request for the" + "connection to remain open\n"); if ((ret = write(fd, "!!\n", 3)) != 3) { sx_report(SX_ERROR,"Partial write to IRRd: %i bytes, %s\n", ret, strerror(errno)); @@ -918,6 +920,8 @@ bgpq_expand(struct bgpq_expander* b) } if (b->identify) { + SX_DEBUG(debug_expander, "b->identify: Sending '!n " + PACKAGE_STRING "' to server.\n"); char ident[128]; snprintf(ident, sizeof(ident), "!n" PACKAGE_STRING "\n"); write(fd, ident, strlen(ident));