From 5571ce114d2837a7a700acd98af3efdf4adbed8e Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Fri, 10 Jan 2020 22:21:16 +0100 Subject: Added flow extra info field Updated tests/results --- example/reader_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index b8fce9632..f8dd315d0 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -949,6 +949,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl snprintf(flow->host_server_name, sizeof(flow->host_server_name), "%s", flow->ndpi_flow->host_server_name); + snprintf(flow->flow_extra_info, sizeof(flow->flow_extra_info), "%s", + flow->ndpi_flow->flow_extra_info); + if(is_ndpi_proto(flow, NDPI_PROTOCOL_DHCP)) { snprintf(flow->dhcp_fingerprint, sizeof(flow->dhcp_fingerprint), "%s", flow->ndpi_flow->protos.dhcp.fingerprint); } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_BITTORRENT)) { -- cgit v1.2.3