diff options
author | Michele Campus <fci1908@gmail.com> | 2016-04-04 00:12:13 +0200 |
---|---|---|
committer | Michele Campus <fci1908@gmail.com> | 2016-04-04 00:12:13 +0200 |
commit | afea67e303abf53d275d91d3f60ac6ab6cd369f9 (patch) | |
tree | 0cb3c49cdb7cfbb889d2856dbf98b243fd8aa048 /src/lib/ndpi_main.c | |
parent | 3d46f3df61af0473299c3f7d9cecc37d8b31c33a (diff) | |
parent | 7e9e3903d8bd2233c24b2a3e7b5dfdb179ad5a08 (diff) |
Merge pull request #170 from srzamfir/dev
Mqtt dissector fix
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index af5bbdbe4..845c56c63 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1523,6 +1523,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp no_master, "COAP", ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0), /* TCP */ ndpi_build_default_ports(ports_b, 5683, 5684, 0, 0, 0)); /* UDP */ + ndpi_set_proto_defaults(ndpi_mod,NDPI_PROTOCOL_ACCEPTABLE,NDPI_PROTOCOL_MQTT, + no_master, + no_master, "MQTT", + ndpi_build_default_ports(ports_a, 1883, 8883, 0, 0, 0), /* TCP */ + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0)); /* UDP */ /* calling function for host and content matched protocols */ init_string_based_protocols(ndpi_mod); @@ -2487,6 +2492,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* COAP */ init_coap_dissector(ndpi_struct, &a, detection_bitmask); + /* MQTT */ + init_mqtt_dissector(ndpi_struct, &a, detection_bitmask); + /* Put false-positive sensitive protocols at the end */ /* SKYPE */ |