diff options
author | Luca Deri <deri@ntop.org> | 2022-01-30 19:17:23 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-01-30 19:17:23 +0100 |
commit | 5f745ee425be564e8a0987438162713731c4b436 (patch) | |
tree | 01eb326eb1a889dcbc285d14ad06bd3469f8d928 | |
parent | f4554218708e390299e0804c4d5d5fda70809b99 (diff) |
Commented old code (see https://github.com/ntop/nDPI/pull/1425)
-rw-r--r-- | src/lib/ndpi_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 628fa33e3..6c4b31499 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5746,6 +5746,15 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct ret = ndpi_detection_giveup(ndpi_str, flow, 0, &protocol_was_guessed); } +#if 0 + /* See https://github.com/ntop/nDPI/pull/1425 */ + if((ret.master_protocol == NDPI_PROTOCOL_UNKNOWN) && (ret.app_protocol != NDPI_PROTOCOL_UNKNOWN) && + (flow->guessed_host_protocol_id != NDPI_PROTOCOL_UNKNOWN)) { + ret.master_protocol = ret.app_protocol; + ret.app_protocol = flow->guessed_host_protocol_id; + } +#endif + if((!flow->risk_checked) && ((ret.master_protocol != NDPI_PROTOCOL_UNKNOWN) || (ret.app_protocol != NDPI_PROTOCOL_UNKNOWN)) ) { |