diff options
Diffstat (limited to 'src/lib/protocols/raknet.c')
-rw-r--r-- | src/lib/protocols/raknet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/protocols/raknet.c b/src/lib/protocols/raknet.c index c7b52ad38..8aeaddc2d 100644 --- a/src/lib/protocols/raknet.c +++ b/src/lib/protocols/raknet.c @@ -47,8 +47,7 @@ static size_t raknet_dissect_ip(struct ndpi_packet_struct * const packet, size_t return (packet->payload[offset] == 0x04 ? 4 : 16); } -static int is_custom_version(struct ndpi_detection_module_struct *ndpi_struct, - struct ndpi_flow_struct *flow) +static int is_custom_version(struct ndpi_detection_module_struct *ndpi_struct) { struct ndpi_packet_struct *packet = &ndpi_struct->packet; unsigned char magic[] = { 0x00, 0xFF, 0xFF, 0x00, 0xFE, 0xFE, 0xFE, 0xFE, @@ -104,7 +103,7 @@ static void ndpi_search_raknet(struct ndpi_detection_module_struct *ndpi_struct, */ if (flow->packet_counter == 1) { - flow->l4.udp.raknet_custom = is_custom_version(ndpi_struct, flow); + flow->l4.udp.raknet_custom = is_custom_version(ndpi_struct); } if (packet->payload_packet_len < 7) |