Skip to content

Commit 1731310

Browse files
committed
print cnx type when dumping it
1 parent 4cd3ab8 commit 1731310

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ void init_cnx(struct connection *cnx)
424424

425425
void dump_connection(struct connection *cnx)
426426
{
427+
print_message(msg_int_error, "type: %s\n", cnx->type == SOCK_DGRAM ? "UDP" : "TCP");
427428
print_message(msg_int_error, "state: %d\n", cnx->state);
428429
print_message(msg_int_error, "0: fd %d, %d deferred\n", cnx->q[0].fd, cnx->q[0].deferred_data_size);
429430
hexdump(msg_int_error, cnx->q[0].deferred_data, cnx->q[0].deferred_data_size);

0 commit comments

Comments
 (0)