diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2021-09-18 09:29:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 09:29:45 +0200 |
commit | 227e586e63cb92c6982e1602dbec79891f3910aa (patch) | |
tree | ad8054c75bb787805f4c70819a198cbd821b6207 /src/lib/protocols/whoisdas.c | |
parent | 4539e96ce2a2366fb5a734161727c4e1c44afd3f (diff) |
A (tiny) effort to reduce memory usage per flow (#1304)
Follow-up of 22241a1d
Only trivial changes:
* remove completely unused fields
* remove fields only written (but never read)
* CSGO protocol only handles UDP traffic
Diffstat (limited to 'src/lib/protocols/whoisdas.c')
-rw-r--r-- | src/lib/protocols/whoisdas.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/protocols/whoisdas.c b/src/lib/protocols/whoisdas.c index 7b711c33b..530b7418b 100644 --- a/src/lib/protocols/whoisdas.c +++ b/src/lib/protocols/whoisdas.c @@ -47,8 +47,6 @@ void ndpi_search_whois_das(struct ndpi_detection_module_struct *ndpi_struct, str flow->host_server_name[i] = '\0'; - flow->server_id = ((sport == 43) || (sport == 4343)) ? flow->src : flow->dst; - NDPI_LOG_INFO(ndpi_struct, "[WHOIS/DAS] %s\n", flow->host_server_name); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_WHOIS_DAS, NDPI_PROTOCOL_UNKNOWN); return; |