diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-08-05 15:15:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 15:15:45 +0200 |
commit | 1d4e27c4739f74ccef19fde7e6008d725ea93a69 (patch) | |
tree | da0d6d7c177488752834482e61c6d802d3d79f82 /src/lib/protocols/bittorrent.c | |
parent | c0732eda45884de91e0c221e9dd23eeec364bf68 (diff) |
Further simplification of `ndpi_process_extra_packet()` (#1698)
See 95e16872.
After c0732eda, we can safely remove the protocol list from
`ndpi_process_extra_packet()`.
The field `flow->check_extra_packets` is redundant; remove it.
Diffstat (limited to 'src/lib/protocols/bittorrent.c')
-rw-r--r-- | src/lib/protocols/bittorrent.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c index b5ea1d1e6..e2ad3d2b4 100644 --- a/src/lib/protocols/bittorrent.c +++ b/src/lib/protocols/bittorrent.c @@ -113,9 +113,6 @@ static void ndpi_add_connection_as_bittorrent(struct ndpi_detection_module_struc confidence); if(flow->protos.bittorrent.hash[0] == '\0') { - /* This is necessary to inform the core to call this dissector again */ - flow->check_extra_packets = 1; - /* Don't use just 1 as in TCP DNS more packets could be returned (e.g. ACK). */ flow->max_extra_packets_to_check = 3; flow->extra_packets_func = search_bittorrent_again; |