From dc70cc0d3bcdbd3f35307b4785048bd1d8637552 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Sun, 15 Mar 2026 22:12:00 +0100 Subject: [PATCH] verbose_packet now dumps UDP packets as well (fix #527) --- ChangeLog | 3 +++ probe.c | 3 +++ tcp-probe.c | 4 ---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b7f36a..d98ea24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +vNEXT: + verbose_packet now also dumps UDP packets. + v2.3.1: Fix segmentation fault in sslh-fork. diff --git a/probe.c b/probe.c index 30e426e..eeb16b2 100644 --- a/probe.c +++ b/probe.c @@ -465,6 +465,9 @@ int probe_buffer(char* buf, int len, struct sslhcfg_protocols_item* p; int i, res, again = 0; + print_message(msg_packets, "hexdump of incoming packet:\n"); + hexdump(msg_packets, buf, len); + *proto_out = NULL; for (i = 0; i < proto_len; i++) { char* probe_str[3] = {"PROBE_NEXT", "PROBE_MATCH", "PROBE_AGAIN"}; diff --git a/tcp-probe.c b/tcp-probe.c index 811ac5b..c96ad30 100644 --- a/tcp-probe.c +++ b/tcp-probe.c @@ -46,10 +46,6 @@ int probe_client_protocol(struct connection *cnx) if (n > 0) { defer_write(&cnx->q[1], buffer, n); - print_message(msg_packets, "hexdump of incoming packet:\n"); - hexdump(msg_packets, cnx->q[1].begin_deferred_data, cnx->q[1].deferred_data_size); - - size_t pp_len = 0; if (cnx->endpoint->endpoint_cfg->proxyprotocol) { pp_len = pp_header_len(cnx->q[1].begin_deferred_data,