From 29ec34f66d91004f460aa6d4f3e28d75b78c9aa5 Mon Sep 17 00:00:00 2001 From: Toni Date: Sun, 25 Jul 2021 21:54:19 +0200 Subject: Improved TFTP detection. Fixes #1242, #1256 (#1262) Signed-off-by: Toni Uhlig --- python/ndpi.py | 2 +- python/ndpi_typestruct.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/ndpi.py b/python/ndpi.py index 54e12b82b..61376fdbe 100644 --- a/python/ndpi.py +++ b/python/ndpi.py @@ -673,7 +673,7 @@ struct ndpi_flow_udp_struct { uint32_t halflife2_stage:2; // 0 - 2 /* NDPI_PROTOCOL_TFTP */ - uint32_t tftp_stage:1; + uint32_t tftp_stage:2; /* NDPI_PROTOCOL_AIMINI */ uint32_t aimini_stage:5; diff --git a/python/ndpi_typestruct.py b/python/ndpi_typestruct.py index b983a660c..1944a5f3c 100644 --- a/python/ndpi_typestruct.py +++ b/python/ndpi_typestruct.py @@ -426,7 +426,7 @@ class NDPIFlowUdpStruct(Structure): ('snmp_stage', c_uint32, 2), ('ppstream_stage', c_uint32, 3), ('halflife2_stage', c_uint32, 2), - ('tftp_stage', c_uint32, 1), + ('tftp_stage', c_uint32, 2), ('aimini_stage', c_uint32, 5), ('xbox_stage', c_uint32, 1), ('wsus_stage', c_uint32, 1), -- cgit v1.2.3