diff options
author | Luca <deri@ntop.org> | 2019-12-29 08:07:35 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-12-29 08:07:35 +0100 |
commit | 257ec7cc5f372d26cba1a7178589a085116f54b0 (patch) | |
tree | e7f4b68288389419ffb69830a8bfc0bd2dac4b82 /src/lib/protocols/mdns_proto.c | |
parent | 73c7ccdb65a1e13e3fb1726af7882dd34534906f (diff) |
Removed disable_metadata_export preference that is no longer useful
since ndpi_process_extra_packet() can drive limited or full metadata export
Diffstat (limited to 'src/lib/protocols/mdns_proto.c')
-rw-r--r-- | src/lib/protocols/mdns_proto.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/protocols/mdns_proto.c b/src/lib/protocols/mdns_proto.c index 6297bd4bb..f41b6de0a 100644 --- a/src/lib/protocols/mdns_proto.c +++ b/src/lib/protocols/mdns_proto.c @@ -82,11 +82,9 @@ static int ndpi_int_check_mdns_payload(struct ndpi_detection_module_struct /* printf("==> [%d] %s\n", j, answer); */ - if(!ndpi_struct->disable_metadata_export) { - len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j); - strncpy(flow->protos.mdns.answer, (const char *)answer, len); - flow->protos.mdns.answer[len] = '\0'; - } + len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j); + strncpy(flow->protos.mdns.answer, (const char *)answer, len); + flow->protos.mdns.answer[len] = '\0'; NDPI_LOG_INFO(ndpi_struct, "found MDNS with answer query\n"); return 1; |