diff options
author | Luca Deri <deri@ntop.org> | 2017-02-13 01:29:25 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2017-02-13 01:29:25 +0100 |
commit | e2cfc96577be5fe97cd5ce63ac30b23cbfadce84 (patch) | |
tree | b5a0dda703c5e6b5407d81e542b2d46b179578f7 /example/ndpi_util.c | |
parent | b16769ddbe0f20000b52fa86b7a1d6a966705c28 (diff) |
Improvements for exporting info in MDNS and UBNTAC2 protocols
Added test pcap file for UBNTAC2
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index d5cb27d5a..3397d8a92 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -516,8 +516,12 @@ static unsigned int packet_processing(struct ndpi_workflow * workflow, } if(n == 0) flow->bittorent_hash[0] = '\0'; + } else if(flow->detected_protocol.protocol == NDPI_PROTOCOL_MDNS) { + snprintf(flow->info, sizeof(flow->info), "%s", flow->ndpi_flow->protos.mdns.answer); + } else if(flow->detected_protocol.protocol == NDPI_PROTOCOL_UBNTAC2) { + snprintf(flow->info, sizeof(flow->info), "%s", flow->ndpi_flow->protos.ubntac2.version); } - + if((proto == IPPROTO_TCP) && (flow->detected_protocol.protocol != NDPI_PROTOCOL_DNS)) { if(flow->detected_protocol.protocol == NDPI_PROTOCOL_SSH) { snprintf(flow->ssh_ssl.client_info, sizeof(flow->ssh_ssl.client_info), "%s", |