Add protocol disabling feature (#1808)

The application may enable only some protocols.
Disabling a protocol means:
*) don't register/use the protocol dissector code (if any)
*) disable classification by-port for such a protocol
*) disable string matchings for domains/certificates involving this protocol
*) disable subprotocol registration (if any)

This feature can be tested with `ndpiReader -B list_of_protocols_to_disable`.

Custom protocols are always enabled.

Technically speaking, this commit doesn't introduce any API/ABI
incompatibility. However, calling `ndpi_set_protocol_detection_bitmask2()`
is now mandatory, just after having called `ndpi_init_detection_module()`.

Most of the diffs (and all the diffs in `/src/lib/protocols/`) are due to
the removing of some function parameters.

Fix the low level macro `NDPI_LOG`. This issue hasn't been detected
sooner simply because almost all the code uses only the helpers `NDPI_LOG_*`
This commit is contained in:
Ivan Nardi
2022-12-18 08:10:57 +00:00
committed by GitHub
parent fb0a73c0c7
commit ad6bfbad4d
195 changed files with 882 additions and 836 deletions
+2 -2
View File
@@ -98,9 +98,9 @@ void ndpi_search_activision(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_activision_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Activision", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Activision", ndpi_struct, *id,
NDPI_PROTOCOL_ACTIVISION,
ndpi_search_activision,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_afp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_afp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AFP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("AFP", ndpi_struct, *id,
NDPI_PROTOCOL_AFP,
ndpi_search_afp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -257,9 +257,9 @@ void ndpi_search_aimini(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_aimini_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Aimini", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Aimini", ndpi_struct, *id,
NDPI_PROTOCOL_AIMINI,
ndpi_search_aimini,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -126,9 +126,9 @@ void ndpi_search_ajp(struct ndpi_detection_module_struct *ndpi_struct,
void init_ajp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AJP", ndpi_struct, detection_bitmask,
ndpi_set_bitmask_protocol_detection("AJP", ndpi_struct,
*id, NDPI_PROTOCOL_AJP, ndpi_search_ajp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN,
+2 -2
View File
@@ -68,9 +68,9 @@ void ndpi_search_alicloud(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_alicloud_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AliCloud", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("AliCloud", ndpi_struct, *id,
NDPI_PROTOCOL_ALICLOUD,
ndpi_search_alicloud,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,8 +67,8 @@ void ndpi_search_amazon_video(struct ndpi_detection_module_struct *ndpi_struct,
void init_amazon_video_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("AMAZON_VIDEO", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("AMAZON_VIDEO", ndpi_struct, *id,
NDPI_PROTOCOL_AMAZON_VIDEO,
ndpi_search_amazon_video,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -46,11 +46,10 @@ void ndpi_search_among_us(struct ndpi_detection_module_struct *ndpi_struct,
}
}
void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_among_us_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection(
"AmongUs", ndpi_struct, detection_bitmask, *id,
"AmongUs", ndpi_struct, *id,
NDPI_PROTOCOL_AMONG_US, ndpi_search_among_us, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
*id += 1;
+2 -2
View File
@@ -72,8 +72,8 @@ void ndpi_search_amqp(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("AMQP", ndpi_struct, detection_bitmask, *id,
void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("AMQP", ndpi_struct, *id,
NDPI_PROTOCOL_AMQP,
ndpi_search_amqp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -95,9 +95,9 @@ void ndpi_search_apple_push(struct ndpi_detection_module_struct *ndpi_struct, st
}
void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_apple_push_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("APPLE_PUSH", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("APPLE_PUSH", ndpi_struct, *id,
NDPI_PROTOCOL_APPLE_PUSH,
ndpi_search_apple_push,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -54,9 +54,9 @@ void ndpi_search_applejuice_tcp(struct ndpi_detection_module_struct *ndpi_struct
}
void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_applejuice_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AppleJuice", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("AppleJuice", ndpi_struct, *id,
NDPI_PROTOCOL_APPLEJUICE,
ndpi_search_applejuice_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -96,9 +96,9 @@ void ndpi_search_armagetron_udp(struct ndpi_detection_module_struct *ndpi_struct
void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_armagetron_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Armagetron", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Armagetron", ndpi_struct, *id,
NDPI_PROTOCOL_ARMAGETRON,
ndpi_search_armagetron_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -52,11 +52,10 @@ static void ndpi_search_avast(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_avast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AVAST",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_AVAST,
ndpi_search_avast,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -53,11 +53,10 @@ static void ndpi_search_avast_securedns(struct ndpi_detection_module_struct *ndp
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_avast_securedns_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("AVAST SecureDNS",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_AVAST_SECUREDNS,
ndpi_search_avast_securedns,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -74,9 +74,9 @@ void ndpi_search_ayiya(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Ayiya", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Ayiya", ndpi_struct, *id,
NDPI_PROTOCOL_AYIYA,
ndpi_search_ayiya,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -54,9 +54,9 @@ void ndpi_search_bgp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("BGP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("BGP", ndpi_struct, *id,
NDPI_PROTOCOL_BGP,
ndpi_search_bgp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -575,9 +575,9 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str
/* ************************************* */
void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("BitTorrent", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("BitTorrent", ndpi_struct, *id,
NDPI_PROTOCOL_BITTORRENT,
ndpi_search_bittorrent,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -45,9 +45,9 @@ void ndpi_search_bjnp(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_bjnp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("BJNP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("BJNP", ndpi_struct, *id,
NDPI_PROTOCOL_BJNP,
ndpi_search_bjnp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -131,9 +131,9 @@ void ndpi_search_capwap(struct ndpi_detection_module_struct *ndpi_struct, struct
void init_capwap_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("CAPWAP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("CAPWAP", ndpi_struct, *id,
NDPI_PROTOCOL_CAPWAP,
ndpi_search_capwap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -137,11 +137,10 @@ void ndpi_search_cassandra(struct ndpi_detection_module_struct *ndpi_struct,
void init_cassandra_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask) {
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Cassandra",
ndpi_struct, detection_bitmask,
ndpi_struct,
*id,
NDPI_PROTOCOL_CASSANDRA,
ndpi_search_cassandra,
+2 -2
View File
@@ -70,9 +70,9 @@ void ndpi_search_checkmk(struct ndpi_detection_module_struct *ndpi_struct,
void init_checkmk_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("CHECKMK", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("CHECKMK", ndpi_struct, *id,
NDPI_PROTOCOL_CHECKMK,
ndpi_search_checkmk,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -70,9 +70,9 @@ void ndpi_search_ciscovpn(struct ndpi_detection_module_struct *ndpi_struct, stru
}
void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("CiscoVPN", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("CiscoVPN", ndpi_struct, *id,
NDPI_PROTOCOL_CISCOVPN,
ndpi_search_ciscovpn,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,9 +67,9 @@ void ndpi_search_citrix(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_citrix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Citrix", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Citrix", ndpi_struct, *id,
NDPI_PROTOCOL_CITRIX,
ndpi_search_citrix,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -147,9 +147,9 @@ void ndpi_search_coap (struct ndpi_detection_module_struct *ndpi_struct,
* Entry point for the ndpi library
*/
void init_coap_dissector (struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection ("COAP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection ("COAP", ndpi_struct, *id,
NDPI_PROTOCOL_COAP,
ndpi_search_coap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -195,9 +195,9 @@ void ndpi_search_collectd(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_collectd_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("collectd", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("collectd", ndpi_struct, *id,
NDPI_PROTOCOL_COLLECTD,
ndpi_search_collectd,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -46,9 +46,9 @@ void ndpi_search_corba(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_corba_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Corba", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Corba", ndpi_struct, *id,
NDPI_PROTOCOL_CORBA,
ndpi_search_corba,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -51,9 +51,8 @@ void ndpi_search_cpha(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("CPHA", ndpi_struct, detection_bitmask, *id,
void init_cpha_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("CPHA", ndpi_struct, *id,
NDPI_PROTOCOL_CPHA,
ndpi_search_cpha,
NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD, /* TODO: ipv6 support? */
+2 -2
View File
@@ -76,9 +76,9 @@ void ndpi_search_crossfire_tcp_udp(struct ndpi_detection_module_struct *ndpi_str
}
void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_crossfire_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Crossfire", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Crossfire", ndpi_struct, *id,
NDPI_PROTOCOL_CROSSFIRE,
ndpi_search_crossfire_tcp_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -67,9 +67,9 @@ void ndpi_search_crynet(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("CryNetwork", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("CryNetwork", ndpi_struct, *id,
NDPI_PROTOCOL_CRYNET,
ndpi_search_crynet,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -130,9 +130,9 @@ void ndpi_search_csgo(struct ndpi_detection_module_struct* ndpi_struct, struct n
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_csgo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("CSGO", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("CSGO", ndpi_struct, *id,
NDPI_PROTOCOL_CSGO,
ndpi_search_csgo,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -93,9 +93,9 @@ void ndpi_search_dcerpc(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_dcerpc_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("RPC", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("RPC", ndpi_struct, *id,
NDPI_PROTOCOL_RPC,
ndpi_search_dcerpc,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -191,8 +191,8 @@ void ndpi_search_dhcp_udp(struct ndpi_detection_module_struct *ndpi_struct,
void init_dhcp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("DHCP", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DHCP", ndpi_struct, *id,
NDPI_PROTOCOL_DHCP,
ndpi_search_dhcp_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -56,9 +56,9 @@ void ndpi_search_dhcpv6_udp(struct ndpi_detection_module_struct *ndpi_struct, st
}
void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_dhcpv6_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("DHCPV6", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("DHCPV6", ndpi_struct, *id,
NDPI_PROTOCOL_DHCPV6,
ndpi_search_dhcpv6_udp,
NDPI_SELECTION_BITMASK_PROTOCOL_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -104,10 +104,9 @@ void ndpi_search_diameter(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_diameter_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Diameter", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Diameter", ndpi_struct, *id,
NDPI_PROTOCOL_DIAMETER, ndpi_search_diameter,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
+2 -2
View File
@@ -193,9 +193,9 @@ void ndpi_search_directconnect(struct ndpi_detection_module_struct
}
void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_directconnect_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("DirectConnect", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("DirectConnect", ndpi_struct, *id,
NDPI_PROTOCOL_DIRECTCONNECT,
ndpi_search_directconnect,
/* TODO: UDP?*/
+2 -2
View File
@@ -712,9 +712,9 @@ void ndpi_search_direct_download_link_tcp(struct ndpi_detection_module_struct *n
}
void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_directdownloadlink_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Direct_Download_Link", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Direct_Download_Link", ndpi_struct, *id,
NDPI_PROTOCOL_DIRECT_DOWNLOAD_LINK,
ndpi_search_direct_download_link_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -74,9 +74,9 @@ void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Discord", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Discord", ndpi_struct, *id,
NDPI_PROTOCOL_DISCORD,
ndpi_search_discord,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -55,9 +55,9 @@ void ndpi_search_dnp3_tcp(struct ndpi_detection_module_struct *ndpi_struct,
/* ******************************************************** */
void init_dnp3_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DNP3", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("DNP3", ndpi_struct, *id,
NDPI_PROTOCOL_DNP3,
ndpi_search_dnp3_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -685,8 +685,8 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st
/* *********************************************** */
void init_dns_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("DNS", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("DNS", ndpi_struct, *id,
NDPI_PROTOCOL_DNS,
ndpi_search_dns,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -66,11 +66,10 @@ void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struct,
}
}
void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_dnscrypt_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection(
"DNScrypt", ndpi_struct, detection_bitmask, *id,
"DNScrypt", ndpi_struct, *id,
NDPI_PROTOCOL_DNSCRYPT, ndpi_search_dnscrypt, NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN, ADD_TO_DETECTION_BITMASK);
*id += 1;
+2 -2
View File
@@ -138,9 +138,9 @@ maybe_dofus:
}
void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_dofus_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Dofus", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Dofus", ndpi_struct, *id,
NDPI_PROTOCOL_DOFUS,
ndpi_search_dofus,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -89,10 +89,9 @@ void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */
void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_drda_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("DRDA", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("DRDA", ndpi_struct, *id,
NDPI_PROTOCOL_DRDA,
ndpi_search_drda,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,9 +81,9 @@ void ndpi_search_dropbox(struct ndpi_detection_module_struct *ndpi_struct, struc
}
void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_dropbox_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("DROPBOX", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("DROPBOX", ndpi_struct, *id,
NDPI_PROTOCOL_DROPBOX,
ndpi_search_dropbox,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -79,9 +79,9 @@ void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_eaq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("EAQ", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("EAQ", ndpi_struct, *id,
NDPI_PROTOCOL_EAQ,
ndpi_search_eaq,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -208,9 +208,9 @@ void ndpi_search_edonkey(struct ndpi_detection_module_struct *ndpi_struct, struc
}
void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_edonkey_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("eDonkey", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("eDonkey", ndpi_struct, *id,
NDPI_PROTOCOL_EDONKEY,
ndpi_search_edonkey,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -71,9 +71,9 @@ void ndpi_search_elasticsearch(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************** */
void init_elasticsearch_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Elasticsearch", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Elasticsearch", ndpi_struct, *id,
NDPI_PROTOCOL_ELASTICSEARCH,
ndpi_search_elasticsearch,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -60,8 +60,8 @@ void ndpi_search_ethernet_ip(struct ndpi_detection_module_struct *ndpi_struct,
void init_ethernet_ip_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("EthernetIP", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("EthernetIP", ndpi_struct, *id,
NDPI_PROTOCOL_ETHERNET_IP,
ndpi_search_ethernet_ip,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -243,9 +243,9 @@ static int ndpi_search_fastcgi_extra(struct ndpi_detection_module_struct * ndpi_
}
void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("FastCGI", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("FastCGI", ndpi_struct, *id,
NDPI_PROTOCOL_FASTCGI,
ndpi_search_fastcgi,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -82,9 +82,9 @@ void ndpi_search_fasttrack_tcp(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_fasttrack_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("FastTrack", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("FastTrack", ndpi_struct, *id,
NDPI_PROTOCOL_FASTTRACK,
ndpi_search_fasttrack_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -92,9 +92,9 @@ void ndpi_search_fiesta(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_fiesta_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Fiesta", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Fiesta", ndpi_struct, *id,
NDPI_PROTOCOL_FIESTA,
ndpi_search_fiesta,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -62,9 +62,9 @@ void ndpi_search_fix(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_fix_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("FIX", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("FIX", ndpi_struct, *id,
NDPI_PROTOCOL_FIX,
ndpi_search_fix,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -117,9 +117,9 @@ void ndpi_search_florensia(struct ndpi_detection_module_struct *ndpi_struct, str
}
void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_florensia_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Florensia", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Florensia", ndpi_struct, *id,
NDPI_PROTOCOL_FLORENSIA,
ndpi_search_florensia,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -685,8 +685,8 @@ void ndpi_search_ftp_control(struct ndpi_detection_module_struct *ndpi_struct,
/* *************************************************************** */
void init_ftp_control_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("FTP_CONTROL", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("FTP_CONTROL", ndpi_struct, *id,
NDPI_PROTOCOL_FTP_CONTROL,
ndpi_search_ftp_control,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -261,9 +261,9 @@ void ndpi_search_ftp_data(struct ndpi_detection_module_struct *ndpi_struct, stru
}
void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_ftp_data_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("FTP_DATA", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("FTP_DATA", ndpi_struct, *id,
NDPI_PROTOCOL_FTP_DATA,
ndpi_search_ftp_data,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -72,11 +72,10 @@ static void ndpi_search_genshin_impact(struct ndpi_detection_module_struct *ndpi
/* ***************************************************************** */
void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_genshin_impact_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("GenshinImpact",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_GENSHIN_IMPACT,
ndpi_search_genshin_impact,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -73,10 +73,9 @@ void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */
void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_git_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Git", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Git", ndpi_struct, *id,
NDPI_PROTOCOL_GIT,
ndpi_search_git,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -314,9 +314,9 @@ void ndpi_search_gnutella(struct ndpi_detection_module_struct *ndpi_struct, stru
}
void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_gnutella_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Gnutella", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Gnutella", ndpi_struct, *id,
NDPI_PROTOCOL_GNUTELLA,
ndpi_search_gnutella,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -128,9 +128,9 @@ void ndpi_search_gtp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_gtp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("GTP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("GTP", ndpi_struct, *id,
NDPI_PROTOCOL_GTP,
ndpi_search_gtp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_guildwars_tcp(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_guildwars_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Guildwars", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Guildwars", ndpi_struct, *id,
NDPI_PROTOCOL_GUILDWARS,
ndpi_search_guildwars_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -117,9 +117,9 @@ void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct n
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_h323_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("H323", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("H323", ndpi_struct, *id,
NDPI_PROTOCOL_H323,
ndpi_search_h323,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -64,9 +64,9 @@ void ndpi_search_halflife2(struct ndpi_detection_module_struct *ndpi_struct, str
}
void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_halflife2_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("HalfLife2", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("HalfLife2", ndpi_struct, *id,
NDPI_PROTOCOL_HALFLIFE2,
ndpi_search_halflife2,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -94,9 +94,8 @@ void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************************** */
void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("GoogleHangout", ndpi_struct, detection_bitmask, *id,
void init_hangout_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("GoogleHangout", ndpi_struct, *id,
NDPI_PROTOCOL_HANGOUT_DUO,
ndpi_search_hangout,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -3
View File
@@ -56,11 +56,10 @@ static void ndpi_search_hpvirtgrp(struct ndpi_detection_module_struct *ndpi_stru
/* ***************************************************************** */
void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_hpvirtgrp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("HP Virtual Machine Group Management",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_HPVIRTGRP,
ndpi_search_hpvirtgrp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,8 +81,8 @@ void ndpi_search_hsrp(struct ndpi_detection_module_struct *ndpi_struct,
void init_hsrp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("HSRP", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("HSRP", ndpi_struct, *id,
NDPI_PROTOCOL_HSRP,
ndpi_search_hsrp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -3
View File
@@ -1522,9 +1522,8 @@ char* ndpi_get_http_content_type(struct ndpi_detection_module_struct *ndpi_struc
}
void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id,
NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("HTTP",ndpi_struct, detection_bitmask, *id,
void init_http_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("HTTP",ndpi_struct, *id,
NDPI_PROTOCOL_HTTP,
ndpi_search_http_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -75,9 +75,9 @@ void ndpi_search_i3d(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_i3d_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("i3D", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("i3D", ndpi_struct, *id,
NDPI_PROTOCOL_I3D,
ndpi_search_i3d,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -95,9 +95,9 @@ void ndpi_search_iax(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_iax_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("IAX", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("IAX", ndpi_struct, *id,
NDPI_PROTOCOL_IAX,
ndpi_search_iax,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_icecast_tcp(struct ndpi_detection_module_struct *ndpi_struct, s
}
void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_icecast_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("IceCast", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("IceCast", ndpi_struct, *id,
NDPI_PROTOCOL_ICECAST,
ndpi_search_icecast_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -72,8 +72,8 @@ void ndpi_search_iec60870_tcp(struct ndpi_detection_module_struct *ndpi_struct,
void init_104_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("IEC60870", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("IEC60870", ndpi_struct, *id,
NDPI_PROTOCOL_IEC60870,
ndpi_search_iec60870_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -68,8 +68,8 @@ void ndpi_search_imo(struct ndpi_detection_module_struct *ndpi_struct, struct nd
void init_imo_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("IMO", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("IMO", ndpi_struct, *id,
NDPI_PROTOCOL_IMO,
ndpi_search_imo,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -55,9 +55,9 @@ void ndpi_search_ipp(struct ndpi_detection_module_struct *ndpi_struct, struct nd
}
void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_ipp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("IPP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("IPP", ndpi_struct, *id,
NDPI_PROTOCOL_IPP,
ndpi_search_ipp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -183,9 +183,9 @@ void ndpi_search_ipsec(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_ipsec_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("IPSec", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("IPSec", ndpi_struct, *id,
NDPI_PROTOCOL_IPSEC,
ndpi_search_ipsec,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -616,9 +616,9 @@ void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc
}
void init_irc_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("IRC", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("IRC", ndpi_struct, *id,
NDPI_PROTOCOL_IRC,
ndpi_search_irc_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -139,9 +139,9 @@ void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, st
}
void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_jabber_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Jabber", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Jabber", ndpi_struct, *id,
NDPI_PROTOCOL_JABBER,
ndpi_search_jabber_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_kakaotalk_voice(struct ndpi_detection_module_struct *ndpi_struc
void init_kakaotalk_voice_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("KakaoTalk_Voice", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("KakaoTalk_Voice", ndpi_struct, *id,
NDPI_PROTOCOL_KAKAOTALK_VOICE,
ndpi_search_kakaotalk_voice,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -697,8 +697,8 @@ static int ndpi_search_kerberos_extra(struct ndpi_detection_module_struct *ndpi_
}
void init_kerberos_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("Kerberos", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Kerberos", ndpi_struct, *id,
NDPI_PROTOCOL_KERBEROS,
ndpi_search_kerberos,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -58,9 +58,9 @@ void ndpi_search_kismet(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_kismet_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("kismet", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("kismet", ndpi_struct, *id,
NDPI_PROTOCOL_KISMET,
ndpi_search_kismet,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -65,9 +65,9 @@ void ndpi_search_kontiki(struct ndpi_detection_module_struct *ndpi_struct, struc
void init_kontiki_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Kontiki", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Kontiki", ndpi_struct, *id,
NDPI_PROTOCOL_KONTIKI,
ndpi_search_kontiki,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -69,9 +69,9 @@ void ndpi_search_ldap(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_ldap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("LDAP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("LDAP", ndpi_struct, *id,
NDPI_PROTOCOL_LDAP,
ndpi_search_ldap,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -78,9 +78,9 @@ void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("LineCall", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("LineCall", ndpi_struct, *id,
NDPI_PROTOCOL_LINE_CALL,
ndpi_search_line,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -85,9 +85,9 @@ void ndpi_search_lisp(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("LISP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("LISP", ndpi_struct, *id,
NDPI_PROTOCOL_LISP,
ndpi_search_lisp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -59,9 +59,9 @@ void ndpi_search_lotus_notes(struct ndpi_detection_module_struct *ndpi_struct, s
}
void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_lotus_notes_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("LotusNotes", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("LotusNotes", ndpi_struct, *id,
NDPI_PROTOCOL_LOTUS_NOTES,
ndpi_search_lotus_notes,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -359,9 +359,9 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_mail_imap_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MAIL_IMAP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MAIL_IMAP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_IMAP,
ndpi_search_mail_imap_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -270,8 +270,8 @@ static void popInitExtraPacketProcessing(struct ndpi_flow_struct *flow) {
/* **************************************** */
void init_mail_pop_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("MAIL_POP", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MAIL_POP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_POP,
ndpi_search_mail_pop_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -472,8 +472,8 @@ static void smtpInitExtraPacketProcessing(struct ndpi_flow_struct *flow) {
/* **************************************** */
void init_mail_smtp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("MAIL_SMTP", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MAIL_SMTP", ndpi_struct, *id,
NDPI_PROTOCOL_MAIL_SMTP,
ndpi_search_mail_smtp_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -81,9 +81,9 @@ void ndpi_search_maplestory(struct ndpi_detection_module_struct *ndpi_struct, st
}
void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_maplestory_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MapleStory", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MapleStory", ndpi_struct, *id,
NDPI_PROTOCOL_MAPLESTORY,
ndpi_search_maplestory,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -50,9 +50,9 @@ void ndpi_search_megaco(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_megaco_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Megaco", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Megaco", ndpi_struct, *id,
NDPI_PROTOCOL_MEGACO,
ndpi_search_megaco,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -175,10 +175,10 @@ void ndpi_search_memcached(
void init_memcached_dissector(
struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MEMCACHED",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_MEMCACHED,
ndpi_search_memcached,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -98,9 +98,9 @@ void ndpi_search_mgcp(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_mgcp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MGCP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MGCP", ndpi_struct, *id,
NDPI_PROTOCOL_MGCP,
ndpi_search_mgcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -185,9 +185,9 @@ void ndpi_search_mining(struct ndpi_detection_module_struct *ndpi_struct,
/* ************************************************************************** */
void init_mining_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Mining", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Mining", ndpi_struct, *id,
NDPI_PROTOCOL_MINING,
ndpi_search_mining,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_OR_UDP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -59,9 +59,9 @@ void ndpi_search_modbus_tcp(struct ndpi_detection_module_struct *ndpi_struct,
void init_modbus_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Modbus", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Modbus", ndpi_struct, *id,
NDPI_PROTOCOL_MODBUS,
ndpi_search_modbus_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -138,8 +138,8 @@ void ndpi_search_mongodb(struct ndpi_detection_module_struct *ndpi_struct,
void init_mongodb_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("MongoDB", ndpi_struct, detection_bitmask,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("MongoDB", ndpi_struct,
*id, NDPI_PROTOCOL_MONGODB, ndpi_search_mongodb,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
SAVE_DETECTION_BITMASK_AS_UNKNOWN,
+2 -2
View File
@@ -87,9 +87,9 @@ void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_mpegdash_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MpegDash", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MpegDash", ndpi_struct, *id,
NDPI_PROTOCOL_MPEGDASH,
ndpi_search_mpegdash_http,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -51,9 +51,9 @@ void ndpi_search_mpegts(struct ndpi_detection_module_struct *ndpi_struct, struct
}
void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_mpegts_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MPEG_TS", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MPEG_TS", ndpi_struct, *id,
NDPI_PROTOCOL_MPEGTS,
ndpi_search_mpegts,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -263,9 +263,9 @@ void ndpi_search_mqtt (struct ndpi_detection_module_struct *ndpi_struct,
* Entry point for the ndpi library
*/
void init_mqtt_dissector (struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection ("MQTT", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection ("MQTT", ndpi_struct, *id,
NDPI_PROTOCOL_MQTT,
ndpi_search_mqtt,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -75,9 +75,9 @@ void ndpi_search_mssql_tds(struct ndpi_detection_module_struct *ndpi_struct, str
}
void init_mssql_tds_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_mssql_tds_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MsSQL_TDS", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MsSQL_TDS", ndpi_struct, *id,
NDPI_PROTOCOL_MSSQL_TDS,
ndpi_search_mssql_tds,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -79,9 +79,9 @@ void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct,
/* ***************************************************** */
void init_munin_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("Munin", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("Munin", ndpi_struct, *id,
NDPI_PROTOCOL_MUNIN,
ndpi_search_munin,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -79,9 +79,9 @@ void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_struct, str
}
void init_mysql_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
void init_mysql_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("MySQL", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("MySQL", ndpi_struct, *id,
NDPI_PROTOCOL_MYSQL,
ndpi_search_mysql_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -188,9 +188,9 @@ void ndpi_search_natpmp(struct ndpi_detection_module_struct *ndpi_struct,
}
void init_natpmp_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("NAT-PMP", ndpi_struct, detection_bitmask, *id,
ndpi_set_bitmask_protocol_detection("NAT-PMP", ndpi_struct, *id,
NDPI_PROTOCOL_NATPMP,
ndpi_search_natpmp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_UDP_WITH_PAYLOAD,
+2 -2
View File
@@ -70,8 +70,8 @@ void ndpi_search_nats_tcp(struct ndpi_detection_module_struct *ndpi_struct,
void init_nats_dissector(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask) {
ndpi_set_bitmask_protocol_detection("Nats", ndpi_struct, detection_bitmask, *id,
u_int32_t *id) {
ndpi_set_bitmask_protocol_detection("Nats", ndpi_struct, *id,
NDPI_PROTOCOL_NATS,
ndpi_search_nats_tcp,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,
+2 -2
View File
@@ -65,10 +65,10 @@ void ndpi_search_nest_log_sink(
void init_nest_log_sink_dissector(
struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask)
u_int32_t *id)
{
ndpi_set_bitmask_protocol_detection("NEST_LOG_SINK",
ndpi_struct, detection_bitmask, *id,
ndpi_struct, *id,
NDPI_PROTOCOL_NEST_LOG_SINK,
ndpi_search_nest_log_sink,
NDPI_SELECTION_BITMASK_PROTOCOL_V4_V6_TCP_WITH_PAYLOAD_WITHOUT_RETRANSMISSION,

Some files were not shown because too many files have changed in this diff Show More