From cdda369e92d7581242c0c436d76569faf9860056 Mon Sep 17 00:00:00 2001 From: Liam Wilson <37528501+liwilson1@users.noreply.github.com> Date: Fri, 27 Sep 2024 19:23:22 +1200 Subject: Add enable/disable guessing using client IP/port (#2569) Add configurable options for whether to include client port or client IP in the flow's protocol guesses. This defaults to include both client port/IP if the protocol is not guessed with the server IP/port. This is intended for when flow direction detection is enabled, so we know that sport = client port, dport = server port. --- src/include/ndpi_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ndpi_private.h') diff --git a/src/include/ndpi_private.h b/src/include/ndpi_private.h index 0bb3af0f1..3aa17ed3c 100644 --- a/src/include/ndpi_private.h +++ b/src/include/ndpi_private.h @@ -201,6 +201,8 @@ struct ndpi_detection_module_config_struct { int compute_entropy; int fpc_enabled; int guess_ip_before_port; + int use_client_ip_in_guess; + int use_client_port_in_guess; char filename_config[CFG_MAX_LEN]; -- cgit v1.2.3