diff options
author | Ivan Kapranov <44571881+koltiradw@users.noreply.github.com> | 2025-02-15 15:22:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-15 13:22:05 +0100 |
commit | 005f7030cb58aedfabe871330638a6fa5c181f86 (patch) | |
tree | bb4a3c395726cdf694d83e90c64667ac6e2205e2 /src/lib/ndpi_utils.c | |
parent | 3c4d7e11fdd782f1803513aac689df2bbd396ee0 (diff) |
reworked ntp info extraction (#2723)
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 2fe6ec584..64c6c2d6d 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1383,8 +1383,8 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct, case NDPI_PROTOCOL_NTP: ndpi_serialize_start_of_block(serializer, "ntp"); - ndpi_serialize_string_uint32(serializer, "request_code", flow->protos.ntp.request_code); - ndpi_serialize_string_uint32(serializer, "version", flow->protos.ntp.request_code); + ndpi_serialize_string_uint32(serializer, "version", flow->protos.ntp.version); + ndpi_serialize_string_uint32(serializer, "mode", flow->protos.ntp.mode); ndpi_serialize_end_of_block(serializer); break; |