diff options
author | Luca <deri@ntop.org> | 2015-07-13 16:16:58 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-07-13 16:16:58 +0200 |
commit | 1d711d849d4cc1350ede04b4f5e0911ac59e88fa (patch) | |
tree | 45c25ddee02dd1ca48c87e83aa6a31c9ae1a1a00 /src | |
parent | 0b7af2dbbc5b6ee6480ab3022a1e1e4695a916bd (diff) |
Added fix for #31
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index fcc2b7304..9807183ba 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3340,6 +3340,11 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct flow->guessed_protocol_id = (int16_t)ndpi_guess_protocol_id(ndpi_struct, protocol, sport, dport); flow->protocol_id_already_guessed = 1; + + if((protocol != IPPROTO_TCP) && (protocol != IPPROTO_UDP)) { + flow->detected_protocol_stack[0] = flow->guessed_protocol_id; + goto ret_protocols; + } } #if 0 |