From 227e586e63cb92c6982e1602dbec79891f3910aa Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sat, 18 Sep 2021 09:29:45 +0200 Subject: 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 --- src/lib/protocols/whoisdas.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/protocols/whoisdas.c') 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; -- cgit v1.2.3