verbose_packet now dumps UDP packets as well (fix #527)

This commit is contained in:
Yves Rutschle committed 2026-03-15 22:12:00 +01:00
1 parent d39388d1ed
commit dc70cc0d3b
3 files changed
+6 -4

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
vNEXT:
verbose_packet now also dumps UDP packets.
v2.3.1: v2.3.1:
Fix segmentation fault in sslh-fork. Fix segmentation fault in sslh-fork.
+3
View File
@@ -465,6 +465,9 @@ int probe_buffer(char* buf, int len,
struct sslhcfg_protocols_item* p; struct sslhcfg_protocols_item* p;
int i, res, again = 0; int i, res, again = 0;
print_message(msg_packets, "hexdump of incoming packet:\n");
hexdump(msg_packets, buf, len);
*proto_out = NULL; *proto_out = NULL;
for (i = 0; i < proto_len; i++) { for (i = 0; i < proto_len; i++) {
char* probe_str[3] = {"PROBE_NEXT", "PROBE_MATCH", "PROBE_AGAIN"}; char* probe_str[3] = {"PROBE_NEXT", "PROBE_MATCH", "PROBE_AGAIN"};
-4
View File
@@ -46,10 +46,6 @@ int probe_client_protocol(struct connection *cnx)
if (n > 0) { if (n > 0) {
defer_write(&cnx->q[1], buffer, n); 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; size_t pp_len = 0;
if (cnx->endpoint->endpoint_cfg->proxyprotocol) { if (cnx->endpoint->endpoint_cfg->proxyprotocol) {
pp_len = pp_header_len(cnx->q[1].begin_deferred_data, pp_len = pp_header_len(cnx->q[1].begin_deferred_data,