aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_private.h
diff options
context:
space:
mode:
authorLiam Wilson <37528501+liwilson1@users.noreply.github.com>2024-09-27 19:23:22 +1200
committerGitHub <noreply@github.com>2024-09-27 09:23:22 +0200
commitcdda369e92d7581242c0c436d76569faf9860056 (patch)
tree6708accaf79ae8954945eed01238d1328cadfef3 /src/include/ndpi_private.h
parent288c1f5c22789660b272ed95fcfada43f7d9e35c (diff)
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.
Diffstat (limited to 'src/include/ndpi_private.h')
1 files changed, 2 insertions, 0 deletions
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];