diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2022-09-09 20:17:17 +0200 |
---|---|---|
committer | Toni <matzeton@googlemail.com> | 2022-09-11 13:33:32 +0200 |
commit | 678dd61866944eae011fa96f1c6d39d0c201858e (patch) | |
tree | 1de68b205c17a5753869bae6a536615ca9be9a34 /src/lib/ndpi_utils.c | |
parent | f44413e039ed65dca73606ff01d7e3ab8a1ca2bb (diff) |
STUN: several improvements
Add detection over TCP and fix detection over IPv6.
Rename some variables since Stun dissector is no more "udp-centric".
Stun dissector should always classified the flow as `STUN` or
`STUN/Something`.
Don't touch `flow->guessed_host_protocol_id` field, which should be
always be related to "ip-classification" only.
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index b86313c75..d7de4e713 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1405,7 +1405,7 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct, case NDPI_PROTOCOL_STUN: ndpi_serialize_start_of_block(serializer, "stun"); - ndpi_serialize_string_uint32(serializer, "num_udp_pkts", flow->stun.num_udp_pkts); + ndpi_serialize_string_uint32(serializer, "num_pkts", flow->stun.num_pkts); ndpi_serialize_string_uint32(serializer, "num_binding_requests", flow->stun.num_binding_requests); ndpi_serialize_string_uint32(serializer, "num_processed_pkts", |