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/directdownloadlink.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/directdownloadlink.c')
-rw-r--r-- | src/lib/protocols/directdownloadlink.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/protocols/directdownloadlink.c b/src/lib/protocols/directdownloadlink.c index 1be4cd671..fad3964e9 100644 --- a/src/lib/protocols/directdownloadlink.c +++ b/src/lib/protocols/directdownloadlink.c @@ -39,11 +39,7 @@ static void ndpi_int_direct_download_link_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { - struct ndpi_packet_struct *packet = &flow->packet; - ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_DIRECT_DOWNLOAD_LINK, NDPI_PROTOCOL_UNKNOWN); - - flow->l4.tcp.ddlink_server_direction = packet->packet_direction; } |