aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-12-15 12:12:15 +0100
committerCampus <campus@ntop.org>2016-12-15 12:12:15 +0100
commitb68f197fea206f121f6cb94dbb5decc7a7a99491 (patch)
tree8f07fb6aba8256419ea83cd837631fc28f8110f4 /src/lib/ndpi_main.c
parent03e8111e1b8c78832a344d523945c89431433621 (diff)
parent39e475b4eaa0be3cd3a3605e43858b8e54b6603b (diff)
Merge branch 'dfranusic-dev' 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 f457bedd1..59253bf18 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -1573,6 +1573,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
no_master, "1kxun", NDPI_PROTOCOL_CATEGORY_MEDIA,
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_SMPP,
+ no_master,
+ no_master, "SMPP", NDPI_PROTOCOL_CATEGORY_P2P,
+ 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 */
@@ -2629,6 +2634,9 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n
/* 1KXUN */
init_kxun_dissector(ndpi_struct, &a, detection_bitmask);
+ /* SMPP */
+ init_smpp_dissector(ndpi_struct, &a, detection_bitmask);
+
/*** Put false-positive sensitive protocols at the end ***/
/* SKYPE */