diff options
author | Liam Wilson <37528501+liwilson1@users.noreply.github.com> | 2024-09-27 19:23:22 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 09:23:22 +0200 |
commit | cdda369e92d7581242c0c436d76569faf9860056 (patch) | |
tree | 6708accaf79ae8954945eed01238d1328cadfef3 /src/include | |
parent | 288c1f5c22789660b272ed95fcfada43f7d9e35c (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')
-rw-r--r-- | src/include/ndpi_private.h | 2 |
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]; |