diff options
author | Luca Deri <deri@ntop.org> | 2019-10-27 19:03:23 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-27 19:03:23 +0100 |
commit | fd38b752c4012c654dc51e8f835b83ee48c380ed (patch) | |
tree | d1bf9e6e485fffc7267244381e11a8bca98d6137 /src/lib/ndpi_main.c | |
parent | 64804a2a24b0a7bfdca3b3262d184048990ad0d6 (diff) |
Added capwap support
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 2c05d8f84..25d81c142 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1770,7 +1770,9 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp 1 /* no subprotocol */, no_master, no_master, "CAPWAP", NDPI_PROTOCOL_CATEGORY_NETWORK, ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, - ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); + // ndpi_build_default_ports(ports_b, 5246, 5247, 0, 0, 0) /* UDP */ + 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_str); @@ -3242,9 +3244,6 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* TEAMSPEAK */ init_teamspeak_dissector(ndpi_str, &a, detection_bitmask); - /* VIBER */ - init_viber_dissector(ndpi_str, &a, detection_bitmask); - /* TOR */ init_tor_dissector(ndpi_str, &a, detection_bitmask); @@ -3356,8 +3355,14 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* MODBUS */ init_modbus_dissector(ndpi_str, &a, detection_bitmask); + /* CAPWAP */ + init_capwap_dissector(ndpi_str, &a, detection_bitmask); + /*** Put false-positive sensitive protocols at the end ***/ + /* VIBER */ + init_viber_dissector(ndpi_str, &a, detection_bitmask); + /* SKYPE */ init_skype_dissector(ndpi_str, &a, detection_bitmask); |