diff options
author | Luca Deri <deri@ntop.org> | 2024-04-03 23:03:46 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-04-03 23:03:46 +0200 |
commit | 9185c2ccc402d3368fc28ac90ab281b4f951719e (patch) | |
tree | a687c66cdd24f6b8ebe52791c88faa1677cea1d5 /example/reader_util.c | |
parent | aacbc9e91868082f7751ddb79b4683efde6e0723 (diff) |
Added support for STUN Mapped IP address
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 1afe4418f..69c244e8d 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1309,6 +1309,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl ndpi_inc_bin(&flow->payload_len_bin, plen2slot(len), 1); } } + } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_STUN)) { + flow->stun.mapped_address.ipv4 = flow->ndpi_flow->stun.mapped_address.ipv4, + flow->stun.mapped_address.port = flow->ndpi_flow->stun.mapped_address.port; } flow->multimedia_flow_type = flow->ndpi_flow->flow_multimedia_type; |