Commit Diff
Diff:
04b369b02762beb8c41af9b6c9a78a5cda799389
8220d0ac36a9f3cb0701f8155b4675d43943b377
Commit:
8220d0ac36a9f3cb0701f8155b4675d43943b377
Tree:
0fb0bb3b799f50b221616979dd12328eb7ed8395
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Thu Jul 30 05:14:29 2020 UTC
Message:
wrap a debug around a TCP packet debug message
blob - fec7d08e19ce7e48e1bd3ad11915752b56b83e76
blob + 3601fedd150f76aeedf1c0e60e1145d18f25dcd1
--- forward.c
+++ forward.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: forward.c,v 1.39 2020/07/23 11:20:34 pjp Exp $
+ * $Id: forward.c,v 1.40 2020/07/30 05:14:29 pjp Exp $
*/
#include <sys/types.h>
@@ -2057,7 +2057,9 @@ fwdparseloop(struct imsgbuf *ibuf, struct imsgbuf *bib
free(packet);
break;
}
+#if DEBUG
dolog(LOG_INFO, "received %d bytes from descriptor %d\n", unpack32((char *)&pi->pkt_s.buflen), imsg.fd);
+#endif
} else
packet = &pi->pkt_s.buf[0];
repomaster@centroid.eu