diff options
author | Michele Campus <fci1908@gmail.com> | 2016-04-16 18:03:26 +0200 |
---|---|---|
committer | Michele Campus <fci1908@gmail.com> | 2016-04-16 18:03:26 +0200 |
commit | 1d54092c7d58e8c9aaf7ea723c2fe57240624099 (patch) | |
tree | 457a16b77e199de25ddc8600b48d513e16afc977 /src/lib/ndpi_main.c | |
parent | a71f525a2b838f08cf40a9da57e033980960b242 (diff) | |
parent | 4b50045ecd2ea4d9ba197bdf0a27e0d75b57572b (diff) |
Merge pull request #177 from giomasce/dev
Support RX protocol (used by AFS).
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 8fe3a54d7..f76f9f333 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1528,6 +1528,14 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp 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 */ + ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0); + ports_b[0].port_low = 7000; + ports_b[0].port_high = 7032; /* See https://www-01.ibm.com/support/docview.wss?uid=swg21044407 */ + ndpi_set_proto_defaults(ndpi_mod,NDPI_PROTOCOL_ACCEPTABLE,NDPI_PROTOCOL_RX, + no_master, + no_master, "RX", + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0), /* TCP */ + ports_b); /* UDP */ /* calling function for host and content matched protocols */ init_string_based_protocols(ndpi_mod); @@ -2495,6 +2503,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* MQTT */ init_mqtt_dissector(ndpi_struct, &a, detection_bitmask); + /* RX */ + init_rx_dissector(ndpi_struct, &a, detection_bitmask); + /* Put false-positive sensitive protocols at the end */ /* SKYPE */ |