@@ -1085,6 +1085,7 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
10851085 NDPI_PROTOCOL_MPEGDASH ,
10861086 NDPI_PROTOCOL_RTSP ,
10871087 NDPI_PROTOCOL_APACHE_THRIFT ,
1088+ NDPI_PROTOCOL_JSON_RPC ,
10881089 NDPI_PROTOCOL_MATCHED_BY_CONTENT ,
10891090 NDPI_PROTOCOL_NO_MORE_SUBPROTOCOLS ); /* NDPI_PROTOCOL_HTTP can have (content-matched) subprotocols */
10901091 ndpi_set_proto_defaults (ndpi_str , 1 /* cleartext */ , 0 /* nw proto */ , NDPI_PROTOCOL_ACCEPTABLE , NDPI_PROTOCOL_MDNS ,
@@ -2195,13 +2196,17 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
21952196 ndpi_build_default_ports (ports_a , 4880 , 0 , 0 , 0 , 0 ) /* TCP */ ,
21962197 ndpi_build_default_ports (ports_b , 0 , 0 , 0 , 0 , 0 ) /* UDP */ );
21972198 ndpi_set_proto_defaults (ndpi_str , 0 /* encrypted */ , 0 /* nw proto */ , NDPI_PROTOCOL_ACCEPTABLE , NDPI_PROTOCOL_UFTP ,
2198- "UFTP" , NDPI_PROTOCOL_CATEGORY_DOWNLOAD_FT ,
2199- ndpi_build_default_ports (ports_a , 0 , 0 , 0 , 0 , 0 ) /* TCP */ ,
2200- ndpi_build_default_ports (ports_b , 1044 , 0 , 0 , 0 , 0 ) /* UDP */ );
2199+ "UFTP" , NDPI_PROTOCOL_CATEGORY_DOWNLOAD_FT ,
2200+ ndpi_build_default_ports (ports_a , 0 , 0 , 0 , 0 , 0 ) /* TCP */ ,
2201+ ndpi_build_default_ports (ports_b , 1044 , 0 , 0 , 0 , 0 ) /* UDP */ );
22012202 ndpi_set_proto_defaults (ndpi_str , 1 /* cleartext */ , 0 /* nw proto */ , NDPI_PROTOCOL_ACCEPTABLE , NDPI_PROTOCOL_OPENFLOW ,
22022203 "OpenFlow" , NDPI_PROTOCOL_CATEGORY_NETWORK ,
22032204 ndpi_build_default_ports (ports_a , 6653 , 0 , 0 , 0 , 0 ) /* TCP */ ,
22042205 ndpi_build_default_ports (ports_b , 0 , 0 , 0 , 0 , 0 ) /* UDP */ );
2206+ ndpi_set_proto_defaults (ndpi_str , 1 /* cleartext */ , 0 /* nw proto */ , NDPI_PROTOCOL_ACCEPTABLE , NDPI_PROTOCOL_JSON_RPC ,
2207+ "JSON-RPC" , NDPI_PROTOCOL_CATEGORY_RPC ,
2208+ ndpi_build_default_ports (ports_a , 0 , 0 , 0 , 0 , 0 ) /* TCP */ ,
2209+ ndpi_build_default_ports (ports_b , 0 , 0 , 0 , 0 , 0 ) /* UDP */ );
22052210
22062211#ifdef CUSTOM_NDPI_PROTOCOLS
22072212#include "../../../nDPI-custom/custom_ndpi_main.c"
@@ -5702,6 +5707,9 @@ static int ndpi_callback_init(struct ndpi_detection_module_struct *ndpi_str) {
57025707 /* OpenFlow */
57035708 init_openflow_dissector (ndpi_str , & a );
57045709
5710+ /* JSON-RPC */
5711+ init_json_rpc_dissector (ndpi_str , & a );
5712+
57055713#ifdef CUSTOM_NDPI_PROTOCOLS
57065714#include "../../../nDPI-custom/custom_ndpi_main_init.c"
57075715#endif
0 commit comments