diff options
author | Sorin Zamfir <sorin.zamfir@yahoo.com> | 2016-02-08 23:01:22 +0200 |
---|---|---|
committer | Sorin Zamfir <sorin.zamfir@yahoo.com> | 2016-02-08 23:01:22 +0200 |
commit | ee5e7449acf33e8c1bb40b86ffe176399cb25b74 (patch) | |
tree | 7ffdae7ac2fca6a37aae6134e8cfbc749c7c08e8 /src/lib/ndpi_main.c | |
parent | 278a067d437f8fa4d6492071bcb356f9c1fc8c4f (diff) |
First running example. No actual low-level detection.
* logging is now running
* included example capture
* included example log
* skeleton for coap detection
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 9d9c38edc..572fd4f01 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1498,6 +1498,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp no_master, "Lync", 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_set_proto_defaults(ndpi_mod,NDPI_PROTOCOL_ACCEPTABLE,NDPI_PROTOCOL_COAP, + no_master, + no_master, "COAP", + ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0), /* TCP */ + ndpi_build_default_ports(ports_b, 5683, 0, 0, 0, 0)); /* UDP */ /* calling function for host and content matched protocols */ init_string_based_protocols(ndpi_mod); @@ -2462,6 +2467,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n /* UBNTAC2 */ init_ubntac2_dissector(ndpi_struct, &a, detection_bitmask); + /* COAP */ + init_coap_dissector(ndpi_struct, &a, detection_bitmask); + /* Put false-positive sensitive protocols at the end */ /* SKYPE */ |