From 17313100b5a06e801bea6a82b9963089c0ff86af Mon Sep 17 00:00:00 2001 From: yrutschle Date: Mon, 1 Nov 2021 18:48:26 +0100 Subject: [PATCH] print cnx type when dumping it --- common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common.c b/common.c index 235b872..1be58e9 100644 --- a/common.c +++ b/common.c @@ -424,6 +424,7 @@ void init_cnx(struct connection *cnx) void dump_connection(struct connection *cnx) { + print_message(msg_int_error, "type: %s\n", cnx->type == SOCK_DGRAM ? "UDP" : "TCP"); print_message(msg_int_error, "state: %d\n", cnx->state); print_message(msg_int_error, "0: fd %d, %d deferred\n", cnx->q[0].fd, cnx->q[0].deferred_data_size); hexdump(msg_int_error, cnx->q[0].deferred_data, cnx->q[0].deferred_data_size);