aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2017-02-01 18:10:02 +0100
committerLuca Deri <deri@ntop.org>2017-02-01 18:10:02 +0100
commit99410454681b75b3a40330ac38b886c53ecd070d (patch)
treeb9f5c50bd177f02d63fb1aa4e93cbfd261ae8e0f /src
parent8fa2d8f0d6f67cccedcefdcf8c64fec139572a89 (diff)
Renumbered ids that were changed by mistake
MQTT (NOW 208, latest stable version 222) RX ( NOW 209, latest stable version 223) OPENDNS ( NOW 197, latest stable version 225 ).
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_protocol_ids.h20
-rw-r--r--src/lib/ndpi_main.c6
2 files changed, 16 insertions, 10 deletions
diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h
index e278ea260..b74f384e6 100644
--- a/src/include/ndpi_protocol_ids.h
+++ b/src/include/ndpi_protocol_ids.h
@@ -236,7 +236,10 @@
#define NDPI_PROTOCOL_KAKAOTALK_VOICE 194 /* KakaoTalk Voice */
#define NDPI_PROTOCOL_TWITCH 195 /* Edoardo Dominici <edoaramis@gmail.com> */
#define NDPI_PROTOCOL_QUICKPLAY 196 /* Streaming service used by various services such as hooq.tv */
-#define NDPI_PROTOCOL_OPENDNS 197
+
+/* 197 is free */
+#define NDPI_PROTOCOL_FREE_197 197
+
#define NDPI_PROTOCOL_MPEGTS 198
#define NDPI_PROTOCOL_SNAPCHAT 199
#define NDPI_PROTOCOL_SINA 200
@@ -247,8 +250,11 @@
#define NDPI_PROTOCOL_1KXUN 205
#define NDPI_PROTOCOL_IQIYI 206
#define NDPI_PROTOCOL_SMPP 207 /* Damir Franusic <df@release14.org> */
-#define NDPI_PROTOCOL_MQTT 208
-#define NDPI_PROTOCOL_RX 209
+
+/* 208 - 209 free */
+#define NDPI_PROTOCOL_FREE_208 208
+#define NDPI_PROTOCOL_FREE_209 209
+
#define NDPI_PROTOCOL_DEEZER 210
#define NDPI_PROTOCOL_INSTAGRAM 211 /* Andrea Buscarinu <andrea.buscarinu@gmail.com> */
#define NDPI_PROTOCOL_MICROSOFT 212
@@ -264,13 +270,13 @@
#define NDPI_PROTOCOL_OFFICE_365 219
#define NDPI_PROTOCOL_CLOUDFLARE 220
#define NDPI_PROTOCOL_MS_ONE_DRIVE 221
+#define NDPI_PROTOCOL_MQTT 222
+#define NDPI_PROTOCOL_RX 223
-/* 222 - 225 */
-#define NDPI_PROTOCOL_FREE_222 222
-#define NDPI_PROTOCOL_FREE_223 223
+/* 224 is free */
#define NDPI_PROTOCOL_FREE_224 224
-#define NDPI_PROTOCOL_FREE_225 225
+#define NDPI_PROTOCOL_OPENDNS 225
#define NDPI_PROTOCOL_GIT 226
#define NDPI_PROTOCOL_DRDA 227
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index f6b6911df..5a6a935ae 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -1596,11 +1596,11 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
/* To be removed as soon as we define new protocols */
ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_191);
ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_192);
+ ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_197);
+ ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_208);
+ ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_209);
ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_217);
- ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_222);
- ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_223);
ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_224);
- ndpi_init_placeholder_proto(ndpi_mod, ports_a, ports_b, no_master, NDPI_PROTOCOL_FREE_225);
/* calling function for host and content matched protocols */
init_string_based_protocols(ndpi_mod);