aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2016-04-29 11:34:32 +0200
committerLuca Deri <lucaderi@users.noreply.github.com>2016-04-29 11:34:32 +0200
commit6e57c4618e7cb7f6c9589fc3398dc98681135dfa (patch)
tree2056753fb0c5e001e4e3d02412c8b467f3194c39
parent1b9aa2ab712dd9092040723e7d9edb2001209724 (diff)
parent9b0bef50ded947bec889db3a6fb6790b7f2ea02d (diff)
Merge pull request #184 from alagoutte/QUIC
Enhance QUIC support
-rw-r--r--src/lib/ndpi_main.c2
-rw-r--r--src/lib/protocols/quic.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 860662858..9e8c75c8f 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -1358,7 +1358,7 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
ndpi_set_proto_defaults(ndpi_mod, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_QUIC,
no_master,
- no_master, "Quic",
+ no_master, "QUIC",
ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
ndpi_build_default_ports(ports_b, 443, 80, 0, 0, 0) /* UDP */);
ndpi_set_proto_defaults(ndpi_mod, NDPI_PROTOCOL_ACCEPTABLE, NDPI_PROTOCOL_EAQ,
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c
index 2bece25a7..fed4dc2ac 100644
--- a/src/lib/protocols/quic.c
+++ b/src/lib/protocols/quic.c
@@ -146,7 +146,9 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, struct n
// Version Match.
if ((vers[0] == 'Q' && vers[1] == '0') &&
- ((vers[2] == '2' && (vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' ||
+ ((vers[2] == '3' && (vers[3] == '3' || vers[3] == '2' || vers[3] == '1' || vers[3] == '0' )) ||
+ (vers[2] == '2' && (vers[3] == '9' || vers[3] == '8' || vers[3] == '7' || vers[3] == '6' ||
+ vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' ||
vers[3] == '1' || vers[3] == '0')) ||
(vers[2] == '1' && (vers[3] == '9' || vers[3] == '8' || vers[3] == '7' || vers[3] == '6' ||
vers[3] == '5' || vers[3] == '4' || vers[3] == '3' || vers[3] == '2' ||