From 4b181be58e6f7aa03b3f01224d9d3190546fc07f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 3 Feb 2021 11:49:14 +0100 Subject: Improved debug message --- example/reader_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/reader_util.c b/example/reader_util.c index 911c1f435..98650cf37 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -783,7 +783,7 @@ static struct ndpi_flow_info *get_ndpi_flow_info(struct ndpi_workflow * workflow #if 0 printf("hashval=%u [%u][%u][%u:%u][%u:%u]\n", hashval, flow.protocol, flow.vlan_id, - flow.src_ip, flow.src_port, flow.dst_ip, flow.dst_port); + flow.src_ip, flow.src_port, ntohs(flow.dst_ip), ntohs(flow.dst_port)); #endif idx = hashval % workflow->prefs.num_roots; -- cgit v1.2.3