aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-11-15 11:50:45 +0100
committerCampus <campus@ntop.org>2016-11-15 11:50:45 +0100
commit0f94a46f868e6818790b0c278121c081a63c9eeb (patch)
tree15c589bb5efd425ed985810bc0ef3e433c7023e2 /src/lib/ndpi_main.c
parentedf0b2fbfea7097c7a189399ff1b326231bf93e5 (diff)
parentd9659617e93034f6f5c28c7b88f5bc5c2fa8367d (diff)
Merge branch 'mkfsn-bjnp-protocol' into dev
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index d80359b51..e30992fd5 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -1563,6 +1563,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
no_master, "GoogleHangout", NDPI_PROTOCOL_CATEGORY_CHAT,
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_BJNP,
+ no_master,
+ no_master, "BJNP", NDPI_PROTOCOL_CATEGORY_UNSPECIFIED,
+ ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
+ ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
/* calling function for host and content matched protocols */
@@ -2621,6 +2626,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n
/* BITTORRENT */
init_bittorrent_dissector(ndpi_struct, &a, detection_bitmask);
+ /* BJNP */
+ init_bjnp_dissector(ndpi_struct, &a, detection_bitmask);
+
/* ----------------------------------------------------------------- */