diff options
author | Luca <deri@ntop.org> | 2019-04-05 12:47:58 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-04-05 12:47:58 +0200 |
commit | 4e7fa82affc876245ab7f008271a49bde80bcf9f (patch) | |
tree | 8653fd3892e119f106b5649192ef38b1be9e088a /src/lib/protocols/coap.c | |
parent | 5656a41f696e8073de28be5bdbd909fda108ee78 (diff) |
Fixed false positive with FTP_DATA protocol
Added coherency in application protol guess by exploiting the host server name
Various protocol optimizations
Diffstat (limited to 'src/lib/protocols/coap.c')
-rw-r--r-- | src/lib/protocols/coap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/coap.c b/src/lib/protocols/coap.c index cf5061bbe..c99ab5fc1 100644 --- a/src/lib/protocols/coap.c +++ b/src/lib/protocols/coap.c @@ -130,7 +130,7 @@ void ndpi_search_coap (struct ndpi_detection_module_struct *ndpi_struct, if(h->version == 1) { if(h->type == CON || h->type == NO_CON || h->type == ACK || h->type == RST ) { if(h->tkl < 8) { - if((h->code >= 0 && h->code <= 5) || (h->code >= 65 && h->code <= 69) || + if((/* h->code >= 0 && */ h->code <= 5) || (h->code >= 65 && h->code <= 69) || (h->code >= 128 && h->code <= 134) || (h->code >= 140 && h->code <= 143) || (h->code >= 160 && h->code <= 165)) { |