aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-01-25 11:44:09 +0100
committerGitHub <noreply@github.com>2023-01-25 11:44:09 +0100
commit29c5cc39fb7f714897c3d6a3454e696e263fb9bc (patch)
treec56dbdb0eb6a4763306adaa73171be77243a1ba9 /src/lib/protocols
parent5849863ef91b9b6a3acc8f1799c6b3642d35f34c (diff)
Some small changes (#1869)
All dissector callbacks should not be exported by the library; make static some other local functions. The callback logic in `ndpiReader` has never been used. With internal libgcrypt, `gcry_control()` should always return no errors. We can check `categories` length at compilation time.
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/activision.c4
-rw-r--r--src/lib/protocols/afp.c2
-rw-r--r--src/lib/protocols/ajp.c4
-rw-r--r--src/lib/protocols/alicloud.c4
-rw-r--r--src/lib/protocols/amazon_video.c2
-rw-r--r--src/lib/protocols/among_us.c2
-rw-r--r--src/lib/protocols/amqp.c4
-rw-r--r--src/lib/protocols/apple_push.c2
-rw-r--r--src/lib/protocols/armagetron.c2
-rw-r--r--src/lib/protocols/bgp.c2
-rw-r--r--src/lib/protocols/bjnp.c2
-rw-r--r--src/lib/protocols/capwap.c2
-rw-r--r--src/lib/protocols/cassandra.c4
-rw-r--r--src/lib/protocols/checkmk.c4
-rw-r--r--src/lib/protocols/ciscovpn.c2
-rw-r--r--src/lib/protocols/citrix.c2
-rw-r--r--src/lib/protocols/coap.c4
-rw-r--r--src/lib/protocols/collectd.c4
-rw-r--r--src/lib/protocols/corba.c2
-rw-r--r--src/lib/protocols/cpha.c2
-rw-r--r--src/lib/protocols/crossfire.c2
-rw-r--r--src/lib/protocols/crynet.c4
-rw-r--r--src/lib/protocols/csgo.c2
-rw-r--r--src/lib/protocols/dcerpc.c6
-rw-r--r--src/lib/protocols/dhcp.c4
-rw-r--r--src/lib/protocols/dhcpv6.c2
-rw-r--r--src/lib/protocols/diameter.c6
-rw-r--r--src/lib/protocols/discord.c4
-rw-r--r--src/lib/protocols/dnp3.c4
-rw-r--r--src/lib/protocols/dnscrypt.c4
-rw-r--r--src/lib/protocols/dofus.c2
-rw-r--r--src/lib/protocols/drda.c4
-rw-r--r--src/lib/protocols/dropbox.c2
-rw-r--r--src/lib/protocols/eaq.c2
-rw-r--r--src/lib/protocols/edonkey.c2
-rw-r--r--src/lib/protocols/elasticsearch.c4
-rw-r--r--src/lib/protocols/ethernet_ip.c4
-rw-r--r--src/lib/protocols/fastcgi.c4
-rw-r--r--src/lib/protocols/fix.c2
-rw-r--r--src/lib/protocols/ftp_control.c4
-rw-r--r--src/lib/protocols/ftp_data.c2
-rw-r--r--src/lib/protocols/git.c4
-rw-r--r--src/lib/protocols/gnutella.c2
-rw-r--r--src/lib/protocols/gtp.c2
-rw-r--r--src/lib/protocols/guildwars.c2
-rw-r--r--src/lib/protocols/h323.c2
-rw-r--r--src/lib/protocols/halflife2_and_mods.c2
-rw-r--r--src/lib/protocols/hangout.c4
-rw-r--r--src/lib/protocols/hsrp.c4
-rw-r--r--src/lib/protocols/i3d.c4
-rw-r--r--src/lib/protocols/iax.c2
-rw-r--r--src/lib/protocols/icecast.c2
-rw-r--r--src/lib/protocols/iec60870-5-104.c4
-rw-r--r--src/lib/protocols/imo.c2
-rw-r--r--src/lib/protocols/ipp.c2
-rw-r--r--src/lib/protocols/ipsec.c4
-rw-r--r--src/lib/protocols/irc.c4
-rw-r--r--src/lib/protocols/jabber.c2
-rw-r--r--src/lib/protocols/kakaotalk_voice.c2
-rw-r--r--src/lib/protocols/kerberos.c4
-rw-r--r--src/lib/protocols/kismet.c4
-rw-r--r--src/lib/protocols/kontiki.c2
-rw-r--r--src/lib/protocols/ldap.c2
-rw-r--r--src/lib/protocols/line.c4
-rw-r--r--src/lib/protocols/lisp.c2
-rw-r--r--src/lib/protocols/lotus_notes.c2
-rw-r--r--src/lib/protocols/mail_imap.c2
-rw-r--r--src/lib/protocols/mail_pop.c4
-rw-r--r--src/lib/protocols/mail_smtp.c4
-rw-r--r--src/lib/protocols/maplestory.c2
-rw-r--r--src/lib/protocols/megaco.c4
-rw-r--r--src/lib/protocols/memcached.c5
-rw-r--r--src/lib/protocols/mgcp.c2
-rw-r--r--src/lib/protocols/mining.c4
-rw-r--r--src/lib/protocols/modbus.c4
-rw-r--r--src/lib/protocols/mongodb.c4
-rw-r--r--src/lib/protocols/mpegdash.c4
-rw-r--r--src/lib/protocols/mpegts.c2
-rw-r--r--src/lib/protocols/mqtt.c4
-rw-r--r--src/lib/protocols/mssql_tds.c2
-rw-r--r--src/lib/protocols/munin.c4
-rw-r--r--src/lib/protocols/mysql.c2
-rw-r--r--src/lib/protocols/natpmp.c4
-rw-r--r--src/lib/protocols/nats.c4
-rw-r--r--src/lib/protocols/nest_log_sink.c5
-rw-r--r--src/lib/protocols/netbios.c4
-rw-r--r--src/lib/protocols/netflow.c2
-rw-r--r--src/lib/protocols/nfs.c2
-rw-r--r--src/lib/protocols/nintendo.c2
-rw-r--r--src/lib/protocols/noe.c4
-rw-r--r--src/lib/protocols/non_tcp_udp.c4
-rw-r--r--src/lib/protocols/ntp.c2
-rw-r--r--src/lib/protocols/ookla.c2
-rw-r--r--src/lib/protocols/openvpn.c4
-rw-r--r--src/lib/protocols/oracle.c2
-rw-r--r--src/lib/protocols/postgres.c4
-rw-r--r--src/lib/protocols/ppstream.c4
-rw-r--r--src/lib/protocols/pptp.c4
-rw-r--r--src/lib/protocols/qq.c2
-rw-r--r--src/lib/protocols/quic.c2
-rw-r--r--src/lib/protocols/radius.c2
-rw-r--r--src/lib/protocols/raknet.c4
-rw-r--r--src/lib/protocols/rdp.c4
-rw-r--r--src/lib/protocols/redis_net.c2
-rw-r--r--src/lib/protocols/riotgames.c4
-rw-r--r--src/lib/protocols/rsh.c4
-rw-r--r--src/lib/protocols/rsync.c2
-rw-r--r--src/lib/protocols/rtcp.c4
-rw-r--r--src/lib/protocols/rtmp.c2
-rw-r--r--src/lib/protocols/rtsp.c4
-rw-r--r--src/lib/protocols/rx.c8
-rw-r--r--src/lib/protocols/s7comm.c4
-rw-r--r--src/lib/protocols/sd_rtn.c4
-rw-r--r--src/lib/protocols/sflow.c2
-rw-r--r--src/lib/protocols/sip.c2
-rw-r--r--src/lib/protocols/skinny.c2
-rw-r--r--src/lib/protocols/skype.c2
-rw-r--r--src/lib/protocols/smb.c2
-rw-r--r--src/lib/protocols/smpp.c4
-rw-r--r--src/lib/protocols/snmp_proto.c4
-rw-r--r--src/lib/protocols/soap.c4
-rw-r--r--src/lib/protocols/socks45.c2
-rw-r--r--src/lib/protocols/softether.c4
-rw-r--r--src/lib/protocols/someip.c4
-rw-r--r--src/lib/protocols/spotify.c2
-rw-r--r--src/lib/protocols/ssdp.c2
-rw-r--r--src/lib/protocols/starcraft.c8
-rw-r--r--src/lib/protocols/steam.c2
-rw-r--r--src/lib/protocols/stun.c2
-rw-r--r--src/lib/protocols/syncthing.c4
-rw-r--r--src/lib/protocols/syslog.c4
-rw-r--r--src/lib/protocols/teamspeak.c2
-rw-r--r--src/lib/protocols/teamviewer.c2
-rw-r--r--src/lib/protocols/telegram.c4
-rw-r--r--src/lib/protocols/telnet.c4
-rw-r--r--src/lib/protocols/teredo.c2
-rw-r--r--src/lib/protocols/tftp.c4
-rw-r--r--src/lib/protocols/tinc.c2
-rw-r--r--src/lib/protocols/tivoconnect.c4
-rw-r--r--src/lib/protocols/tocaboca.c4
-rw-r--r--src/lib/protocols/tplink_shp.c4
-rw-r--r--src/lib/protocols/tuya_lp.c4
-rw-r--r--src/lib/protocols/tvuplayer.c2
-rw-r--r--src/lib/protocols/ubntac2.c2
-rw-r--r--src/lib/protocols/ultrasurf.c4
-rw-r--r--src/lib/protocols/usenet.c4
-rw-r--r--src/lib/protocols/vhua.c2
-rw-r--r--src/lib/protocols/viber.c2
-rw-r--r--src/lib/protocols/vmware.c2
-rw-r--r--src/lib/protocols/vnc.c2
-rw-r--r--src/lib/protocols/vxlan.c2
-rw-r--r--src/lib/protocols/warcraft3.c4
-rw-r--r--src/lib/protocols/websocket.c2
-rw-r--r--src/lib/protocols/whatsapp.c4
-rw-r--r--src/lib/protocols/whoisdas.c2
-rw-r--r--src/lib/protocols/wireguard.c4
-rw-r--r--src/lib/protocols/world_of_kung_fu.c2
-rw-r--r--src/lib/protocols/world_of_warcraft.c4
-rw-r--r--src/lib/protocols/wsd.c4
-rw-r--r--src/lib/protocols/xbox.c2
-rw-r--r--src/lib/protocols/xdmcp.c4
-rw-r--r--src/lib/protocols/zabbix.c4
-rw-r--r--src/lib/protocols/zattoo.c2
-rw-r--r--src/lib/protocols/zeromq.c2
164 files changed, 253 insertions, 255 deletions
diff --git a/src/lib/protocols/activision.c b/src/lib/protocols/activision.c
index 570779dfa..09a90af9d 100644
--- a/src/lib/protocols/activision.c
+++ b/src/lib/protocols/activision.c
@@ -35,8 +35,8 @@ static void ndpi_int_activision_add_connection(struct ndpi_detection_module_stru
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_activision(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_activision(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/afp.c b/src/lib/protocols/afp.c
index 8c47dc2ad..b55c4d4c7 100644
--- a/src/lib/protocols/afp.c
+++ b/src/lib/protocols/afp.c
@@ -41,7 +41,7 @@ static void ndpi_int_afp_add_connection(struct ndpi_detection_module_struct *ndp
}
-void ndpi_search_afp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_afp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ajp.c b/src/lib/protocols/ajp.c
index 75a99345a..c25b95803 100644
--- a/src/lib/protocols/ajp.c
+++ b/src/lib/protocols/ajp.c
@@ -107,8 +107,8 @@ static void ndpi_check_ajp(struct ndpi_detection_module_struct *ndpi_struct,
}
}
-void ndpi_search_ajp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_ajp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search AJP\n");
ndpi_check_ajp(ndpi_struct, flow);
diff --git a/src/lib/protocols/alicloud.c b/src/lib/protocols/alicloud.c
index 80817b78a..7ee192ad5 100644
--- a/src/lib/protocols/alicloud.c
+++ b/src/lib/protocols/alicloud.c
@@ -34,8 +34,8 @@ static void ndpi_int_alicloud_add_connection(struct ndpi_detection_module_struct
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_alicloud(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_alicloud(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/amazon_video.c b/src/lib/protocols/amazon_video.c
index 8c8cb0b1c..49e1cf2ef 100644
--- a/src/lib/protocols/amazon_video.c
+++ b/src/lib/protocols/amazon_video.c
@@ -56,7 +56,7 @@ static void ndpi_check_amazon_video(struct ndpi_detection_module_struct *ndpi_st
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_amazon_video(struct ndpi_detection_module_struct *ndpi_struct,
+static void ndpi_search_amazon_video(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search amazon_video\n");
diff --git a/src/lib/protocols/among_us.c b/src/lib/protocols/among_us.c
index a6c066386..f1e143e81 100644
--- a/src/lib/protocols/among_us.c
+++ b/src/lib/protocols/among_us.c
@@ -30,7 +30,7 @@ static void ndpi_int_among_us_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_AMONG_US, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_among_us(struct ndpi_detection_module_struct *ndpi_struct,
+static void ndpi_search_among_us(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/amqp.c b/src/lib/protocols/amqp.c
index 610abaa7a..42afb122a 100644
--- a/src/lib/protocols/amqp.c
+++ b/src/lib/protocols/amqp.c
@@ -39,8 +39,8 @@ static void ndpi_int_amqp_add_connection(struct ndpi_detection_module_struct *nd
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_AMQP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_amqp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
- struct ndpi_packet_struct *packet = &ndpi_struct->packet;
+static void ndpi_search_amqp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+ struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search amqp\n");
diff --git a/src/lib/protocols/apple_push.c b/src/lib/protocols/apple_push.c
index f39ad7838..7f1916251 100644
--- a/src/lib/protocols/apple_push.c
+++ b/src/lib/protocols/apple_push.c
@@ -85,7 +85,7 @@ static void ndpi_check_apple_push(struct ndpi_detection_module_struct *ndpi_stru
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_apple_push(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_apple_push(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search apple_push\n");
diff --git a/src/lib/protocols/armagetron.c b/src/lib/protocols/armagetron.c
index 40110d8b8..b021862bc 100644
--- a/src/lib/protocols/armagetron.c
+++ b/src/lib/protocols/armagetron.c
@@ -35,7 +35,7 @@ static void ndpi_int_armagetron_add_connection(struct ndpi_detection_module_stru
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_ARMAGETRON, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_armagetron_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_armagetron_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/bgp.c b/src/lib/protocols/bgp.c
index 860473b54..dbc8e5fcc 100644
--- a/src/lib/protocols/bgp.c
+++ b/src/lib/protocols/bgp.c
@@ -29,7 +29,7 @@
/* this detection also works asymmetrically */
-void ndpi_search_bgp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_bgp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t bgp_port = htons(179);
diff --git a/src/lib/protocols/bjnp.c b/src/lib/protocols/bjnp.c
index 17ec9b1d5..66cd2fdd6 100644
--- a/src/lib/protocols/bjnp.c
+++ b/src/lib/protocols/bjnp.c
@@ -34,7 +34,7 @@ static void ndpi_check_bjnp(struct ndpi_detection_module_struct *ndpi_struct, st
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_bjnp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_bjnp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search bjnp\n");
diff --git a/src/lib/protocols/capwap.c b/src/lib/protocols/capwap.c
index eff193154..11a394921 100644
--- a/src/lib/protocols/capwap.c
+++ b/src/lib/protocols/capwap.c
@@ -121,7 +121,7 @@ static void ndpi_search_setup_capwap(struct ndpi_detection_module_struct *ndpi_s
ndpi_int_capwap_add_connection(ndpi_struct, flow);
}
-void ndpi_search_capwap(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_capwap(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/cassandra.c b/src/lib/protocols/cassandra.c
index ff050b7d9..25180ac31 100644
--- a/src/lib/protocols/cassandra.c
+++ b/src/lib/protocols/cassandra.c
@@ -105,8 +105,8 @@ static bool ndpi_check_valid_cassandra_flags(uint8_t flags)
return (flags & 0xF0) == 0;
}
-void ndpi_search_cassandra(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_cassandra(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/checkmk.c b/src/lib/protocols/checkmk.c
index f057ef7d9..c0b857430 100644
--- a/src/lib/protocols/checkmk.c
+++ b/src/lib/protocols/checkmk.c
@@ -35,8 +35,8 @@ static void ndpi_int_checkmk_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_checkmk(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_checkmk(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ciscovpn.c b/src/lib/protocols/ciscovpn.c
index 7151631f9..d3a63579d 100644
--- a/src/lib/protocols/ciscovpn.c
+++ b/src/lib/protocols/ciscovpn.c
@@ -35,7 +35,7 @@ static void ndpi_int_ciscovpn_add_connection(struct ndpi_detection_module_struct
/* ****************************************************************** */
-void ndpi_search_ciscovpn(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ciscovpn(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t udport = 0, usport = 0;
diff --git a/src/lib/protocols/citrix.c b/src/lib/protocols/citrix.c
index e1807f684..ccb3af0d7 100644
--- a/src/lib/protocols/citrix.c
+++ b/src/lib/protocols/citrix.c
@@ -57,7 +57,7 @@ static void ndpi_check_citrix(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_citrix(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_citrix(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search citrix\n");
diff --git a/src/lib/protocols/coap.c b/src/lib/protocols/coap.c
index e5513b8ba..6d0f68d46 100644
--- a/src/lib/protocols/coap.c
+++ b/src/lib/protocols/coap.c
@@ -103,8 +103,8 @@ static int isCoAPport(u_int16_t port) {
/**
* Dissector function that searches CoAP headers
*/
-void ndpi_search_coap (struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_coap(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
struct ndpi_coap_hdr * h = (struct ndpi_coap_hdr*) packet->payload;
diff --git a/src/lib/protocols/collectd.c b/src/lib/protocols/collectd.c
index 1908ac015..5b9e3ae54 100644
--- a/src/lib/protocols/collectd.c
+++ b/src/lib/protocols/collectd.c
@@ -127,8 +127,8 @@ static int ndpi_int_collectd_dissect_username(struct ndpi_flow_struct * const fl
return 0;
}
-void ndpi_search_collectd(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_collectd(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
u_int16_t num_blocks;
diff --git a/src/lib/protocols/corba.c b/src/lib/protocols/corba.c
index 355039db4..b8c453acc 100644
--- a/src/lib/protocols/corba.c
+++ b/src/lib/protocols/corba.c
@@ -29,7 +29,7 @@ static void ndpi_int_corba_add_connection(struct ndpi_detection_module_struct
{
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_CORBA, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_corba(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_corba(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/cpha.c b/src/lib/protocols/cpha.c
index 5874b0f9e..97bad4262 100644
--- a/src/lib/protocols/cpha.c
+++ b/src/lib/protocols/cpha.c
@@ -30,7 +30,7 @@
#include "ndpi_api.h"
-void ndpi_search_cpha(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_cpha(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
const u_int16_t cpha_port = htons(8116);
diff --git a/src/lib/protocols/crossfire.c b/src/lib/protocols/crossfire.c
index cc853e773..28cb3e5ca 100644
--- a/src/lib/protocols/crossfire.c
+++ b/src/lib/protocols/crossfire.c
@@ -35,7 +35,7 @@ static void ndpi_int_crossfire_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_CROSSFIRE, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_crossfire_tcp_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_crossfire_tcp_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/crynet.c b/src/lib/protocols/crynet.c
index b1ef7a443..a276c7299 100644
--- a/src/lib/protocols/crynet.c
+++ b/src/lib/protocols/crynet.c
@@ -35,8 +35,8 @@ static void ndpi_int_crynet_add_connection(struct ndpi_detection_module_struct *
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_crynet(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_crynet(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/csgo.c b/src/lib/protocols/csgo.c
index 4d98c59e8..a7d0cd130 100644
--- a/src/lib/protocols/csgo.c
+++ b/src/lib/protocols/csgo.c
@@ -26,7 +26,7 @@
#include "ndpi_api.h"
-void ndpi_search_csgo(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
+static void ndpi_search_csgo(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
if(packet->udp != NULL) {
diff --git a/src/lib/protocols/dcerpc.c b/src/lib/protocols/dcerpc.c
index 175c3189a..688123ce5 100644
--- a/src/lib/protocols/dcerpc.c
+++ b/src/lib/protocols/dcerpc.c
@@ -34,7 +34,7 @@ static void ndpi_int_dcerpc_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RPC, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-bool is_connection_oriented_dcerpc(struct ndpi_packet_struct *packet, struct ndpi_flow_struct *flow)
+static bool is_connection_oriented_dcerpc(struct ndpi_packet_struct *packet, struct ndpi_flow_struct *flow)
{
if((packet->tcp != NULL)
&& (packet->payload_packet_len >= 64)
@@ -47,7 +47,7 @@ bool is_connection_oriented_dcerpc(struct ndpi_packet_struct *packet, struct ndp
return false;
}
-bool is_connectionless_dcerpc(struct ndpi_packet_struct *packet, struct ndpi_flow_struct *flow)
+static bool is_connectionless_dcerpc(struct ndpi_packet_struct *packet, struct ndpi_flow_struct *flow)
{
u_int16_t fragment_len;
@@ -77,7 +77,7 @@ bool is_connectionless_dcerpc(struct ndpi_packet_struct *packet, struct ndpi_flo
return true;
}
-void ndpi_search_dcerpc(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_dcerpc(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/dhcp.c b/src/lib/protocols/dhcp.c
index 56295c760..12f8c5746 100644
--- a/src/lib/protocols/dhcp.c
+++ b/src/lib/protocols/dhcp.c
@@ -70,8 +70,8 @@ static int is_dhcp_magic(uint8_t *magic) {
return(0);
}
-void ndpi_search_dhcp_udp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_dhcp_udp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int8_t msg_type = 0;
diff --git a/src/lib/protocols/dhcpv6.c b/src/lib/protocols/dhcpv6.c
index 8e665c742..9d1e1f1a8 100644
--- a/src/lib/protocols/dhcpv6.c
+++ b/src/lib/protocols/dhcpv6.c
@@ -36,7 +36,7 @@ static void ndpi_int_dhcpv6_add_connection(struct ndpi_detection_module_struct *
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_DHCPV6, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_dhcpv6_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_dhcpv6_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/diameter.c b/src/lib/protocols/diameter.c
index 901d3035b..2ed974864 100644
--- a/src/lib/protocols/diameter.c
+++ b/src/lib/protocols/diameter.c
@@ -62,7 +62,7 @@ struct diameter_header_t
// Check packet
-int is_diameter(struct ndpi_packet_struct *packet)
+static int is_diameter(struct ndpi_packet_struct *packet)
{
struct diameter_header_t *diameter = (struct diameter_header_t *)packet->payload;
@@ -86,8 +86,8 @@ int is_diameter(struct ndpi_packet_struct *packet)
}
-void ndpi_search_diameter(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_diameter(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/discord.c b/src/lib/protocols/discord.c
index eede88b86..95577072c 100644
--- a/src/lib/protocols/discord.c
+++ b/src/lib/protocols/discord.c
@@ -35,8 +35,8 @@ static void ndpi_int_discord_add_connection(struct ndpi_detection_module_struct
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/dnp3.c b/src/lib/protocols/dnp3.c
index b81ca3161..9361d8bfd 100644
--- a/src/lib/protocols/dnp3.c
+++ b/src/lib/protocols/dnp3.c
@@ -30,8 +30,8 @@
/* ******************************************************** */
-void ndpi_search_dnp3_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_dnp3_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search DNP3\n");
diff --git a/src/lib/protocols/dnscrypt.c b/src/lib/protocols/dnscrypt.c
index 61bd9241a..69b827f3d 100644
--- a/src/lib/protocols/dnscrypt.c
+++ b/src/lib/protocols/dnscrypt.c
@@ -30,8 +30,8 @@ static void ndpi_int_dnscrypt_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_DNSCRYPT, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_dnscrypt(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
static char const * const dnscrypt_initial = "2\rdnscrypt";
diff --git a/src/lib/protocols/dofus.c b/src/lib/protocols/dofus.c
index 436f84f51..5357fc96f 100644
--- a/src/lib/protocols/dofus.c
+++ b/src/lib/protocols/dofus.c
@@ -34,7 +34,7 @@ static void ndpi_dofus_add_connection(struct ndpi_detection_module_struct *ndpi_
NDPI_LOG_INFO(ndpi_struct, "found dofus\n");
}
-void ndpi_search_dofus(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_dofus(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/drda.c b/src/lib/protocols/drda.c
index 67afacb95..dd39afdc6 100644
--- a/src/lib/protocols/drda.c
+++ b/src/lib/protocols/drda.c
@@ -33,8 +33,8 @@ struct ndpi_drda_hdr {
};
-void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_drda(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * packet = &ndpi_struct->packet;
u_int16_t payload_len = packet->payload_packet_len;
diff --git a/src/lib/protocols/dropbox.c b/src/lib/protocols/dropbox.c
index 092238aaa..af4bc819c 100644
--- a/src/lib/protocols/dropbox.c
+++ b/src/lib/protocols/dropbox.c
@@ -70,7 +70,7 @@ static void ndpi_check_dropbox(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_dropbox(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_dropbox(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search dropbox\n");
diff --git a/src/lib/protocols/eaq.c b/src/lib/protocols/eaq.c
index e999e76ee..d01cae9d3 100644
--- a/src/lib/protocols/eaq.c
+++ b/src/lib/protocols/eaq.c
@@ -40,7 +40,7 @@ static void ndpi_int_eaq_add_connection(struct ndpi_detection_module_struct *ndp
}
-void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t sport = ntohs(packet->udp->source), dport = ntohs(packet->udp->dest);
diff --git a/src/lib/protocols/edonkey.c b/src/lib/protocols/edonkey.c
index 98e3474df..be1fae412 100644
--- a/src/lib/protocols/edonkey.c
+++ b/src/lib/protocols/edonkey.c
@@ -198,7 +198,7 @@ static void ndpi_check_edonkey(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_edonkey(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_edonkey(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search EDONKEY\n");
/* skip marked packets */
diff --git a/src/lib/protocols/elasticsearch.c b/src/lib/protocols/elasticsearch.c
index 278809b27..aa099b8a3 100644
--- a/src/lib/protocols/elasticsearch.c
+++ b/src/lib/protocols/elasticsearch.c
@@ -38,8 +38,8 @@ static void ndpi_int_elasticsearch_add_connection(struct ndpi_detection_module_s
/* ***************************************************** */
-void ndpi_search_elasticsearch(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_elasticsearch(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
u_int32_t message_length;
diff --git a/src/lib/protocols/ethernet_ip.c b/src/lib/protocols/ethernet_ip.c
index 0c96d7e5c..45ca05698 100644
--- a/src/lib/protocols/ethernet_ip.c
+++ b/src/lib/protocols/ethernet_ip.c
@@ -31,8 +31,8 @@ static void ndpi_int_ethernet_ip_add_connection(struct ndpi_detection_module_str
}
-void ndpi_search_ethernet_ip(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_ethernet_ip(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search for ETHERNET_IP\n");
diff --git a/src/lib/protocols/fastcgi.c b/src/lib/protocols/fastcgi.c
index 6726a49c7..5a608eda5 100644
--- a/src/lib/protocols/fastcgi.c
+++ b/src/lib/protocols/fastcgi.c
@@ -154,8 +154,8 @@ static int fcgi_parse_params(struct ndpi_flow_struct * const flow,
return 0;
}
-void ndpi_search_fastcgi(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_fastcgi(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * const packet = &ndpi_struct->packet;
struct FCGI_Header const * fcgi_hdr;
diff --git a/src/lib/protocols/fix.c b/src/lib/protocols/fix.c
index 89d10f760..0d0e71331 100644
--- a/src/lib/protocols/fix.c
+++ b/src/lib/protocols/fix.c
@@ -28,7 +28,7 @@
#include "ndpi_api.h"
-void ndpi_search_fix(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_fix(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ftp_control.c b/src/lib/protocols/ftp_control.c
index edc41e5f6..944c0aecb 100644
--- a/src/lib/protocols/ftp_control.c
+++ b/src/lib/protocols/ftp_control.c
@@ -668,8 +668,8 @@ static void ndpi_check_ftp_control(struct ndpi_detection_module_struct *ndpi_str
/* *************************************************************** */
-void ndpi_search_ftp_control(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_ftp_control(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search FTP_CONTROL\n");
/* skip marked packets */
diff --git a/src/lib/protocols/ftp_data.c b/src/lib/protocols/ftp_data.c
index d532a6c66..ef924c5fa 100644
--- a/src/lib/protocols/ftp_data.c
+++ b/src/lib/protocols/ftp_data.c
@@ -248,7 +248,7 @@ static void ndpi_check_ftp_data(struct ndpi_detection_module_struct *ndpi_struct
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_ftp_data(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_ftp_data(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search FTP_DATA\n");
ndpi_check_ftp_data(ndpi_struct, flow);
diff --git a/src/lib/protocols/git.c b/src/lib/protocols/git.c
index fce698def..06038febd 100644
--- a/src/lib/protocols/git.c
+++ b/src/lib/protocols/git.c
@@ -27,8 +27,8 @@
#define GIT_PORT 9418
-void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/gnutella.c b/src/lib/protocols/gnutella.c
index 20c21052d..13b8d99c7 100644
--- a/src/lib/protocols/gnutella.c
+++ b/src/lib/protocols/gnutella.c
@@ -38,7 +38,7 @@ static void ndpi_int_gnutella_add_connection(struct ndpi_detection_module_struct
confidence);
}
-void ndpi_search_gnutella(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_gnutella(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/gtp.c b/src/lib/protocols/gtp.c
index 59f6860bd..a0c461774 100644
--- a/src/lib/protocols/gtp.c
+++ b/src/lib/protocols/gtp.c
@@ -118,7 +118,7 @@ static void ndpi_check_gtp(struct ndpi_detection_module_struct *ndpi_struct, str
return;
}
-void ndpi_search_gtp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_gtp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search gtp\n");
diff --git a/src/lib/protocols/guildwars.c b/src/lib/protocols/guildwars.c
index 03779dd0e..86ca00a6d 100644
--- a/src/lib/protocols/guildwars.c
+++ b/src/lib/protocols/guildwars.c
@@ -34,7 +34,7 @@ static void ndpi_int_guildwars_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_GUILDWARS, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_guildwars_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_guildwars_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/h323.c b/src/lib/protocols/h323.c
index 8917ec1ad..bb088b239 100644
--- a/src/lib/protocols/h323.c
+++ b/src/lib/protocols/h323.c
@@ -31,7 +31,7 @@ struct tpkt {
u_int16_t len;
};
-void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t dport = 0, sport = 0;
diff --git a/src/lib/protocols/halflife2_and_mods.c b/src/lib/protocols/halflife2_and_mods.c
index f6304f42a..b4c91dd19 100644
--- a/src/lib/protocols/halflife2_and_mods.c
+++ b/src/lib/protocols/halflife2_and_mods.c
@@ -35,7 +35,7 @@ static void ndpi_int_halflife2_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_HALFLIFE2, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_halflife2(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_halflife2(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/hangout.c b/src/lib/protocols/hangout.c
index 576d95014..720b4045c 100644
--- a/src/lib/protocols/hangout.c
+++ b/src/lib/protocols/hangout.c
@@ -55,8 +55,8 @@ static u_int8_t isHangoutTCPPort(u_int16_t port) {
/* ***************************************************************** */
-void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_hangout(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct * packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search Hangout\n");
diff --git a/src/lib/protocols/hsrp.c b/src/lib/protocols/hsrp.c
index e03db7688..3f177ebfb 100644
--- a/src/lib/protocols/hsrp.c
+++ b/src/lib/protocols/hsrp.c
@@ -31,8 +31,8 @@
#define HSRP_PORT 1985
#define HSRP_PORT_V6 2029
-void ndpi_search_hsrp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_hsrp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t port_to_match;
diff --git a/src/lib/protocols/i3d.c b/src/lib/protocols/i3d.c
index 08483f37d..ca0a78ebe 100644
--- a/src/lib/protocols/i3d.c
+++ b/src/lib/protocols/i3d.c
@@ -35,8 +35,8 @@ static void ndpi_int_i3d_add_connection(struct ndpi_detection_module_struct * co
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_i3d(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_i3d(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/iax.c b/src/lib/protocols/iax.c
index 428dd3a67..d988fe772 100644
--- a/src/lib/protocols/iax.c
+++ b/src/lib/protocols/iax.c
@@ -85,7 +85,7 @@ static void ndpi_search_setup_iax(struct ndpi_detection_module_struct *ndpi_stru
}
-void ndpi_search_iax(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_iax(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/icecast.c b/src/lib/protocols/icecast.c
index 1e96054aa..354650233 100644
--- a/src/lib/protocols/icecast.c
+++ b/src/lib/protocols/icecast.c
@@ -33,7 +33,7 @@ static void ndpi_int_icecast_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_ICECAST, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_icecast_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_icecast_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t i;
diff --git a/src/lib/protocols/iec60870-5-104.c b/src/lib/protocols/iec60870-5-104.c
index 15921a76c..e03ea18d3 100644
--- a/src/lib/protocols/iec60870-5-104.c
+++ b/src/lib/protocols/iec60870-5-104.c
@@ -28,8 +28,8 @@
#include "ndpi_api.h"
-void ndpi_search_iec60870_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_iec60870_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
/* Check connection over TCP */
diff --git a/src/lib/protocols/imo.c b/src/lib/protocols/imo.c
index d3c9c23ca..d73d8a6e1 100644
--- a/src/lib/protocols/imo.c
+++ b/src/lib/protocols/imo.c
@@ -32,7 +32,7 @@ static void ndpi_int_imo_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_IMO, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_imo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_imo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search IMO\n");
diff --git a/src/lib/protocols/ipp.c b/src/lib/protocols/ipp.c
index 2cb1d64fd..5ff17c756 100644
--- a/src/lib/protocols/ipp.c
+++ b/src/lib/protocols/ipp.c
@@ -35,7 +35,7 @@ static void ndpi_int_ipp_add_connection(struct ndpi_detection_module_struct *ndp
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_IPP, NDPI_PROTOCOL_HTTP, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_ipp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ipp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ipsec.c b/src/lib/protocols/ipsec.c
index de7e91288..77e55070d 100644
--- a/src/lib/protocols/ipsec.c
+++ b/src/lib/protocols/ipsec.c
@@ -126,8 +126,8 @@ static enum isakmp_type ndpi_int_check_isakmp_v2(struct ndpi_packet_struct const
return isakmp_type;
}
-void ndpi_search_ipsec(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_ipsec(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * const packet = &ndpi_struct->packet;
u_int16_t isakmp_offset = 0;
diff --git a/src/lib/protocols/irc.c b/src/lib/protocols/irc.c
index 8dac45ea4..db73553e2 100644
--- a/src/lib/protocols/irc.c
+++ b/src/lib/protocols/irc.c
@@ -120,7 +120,7 @@ static u_int8_t ndpi_check_for_IRC_traces(const u_int8_t * ptr, u_int16_t len)
}
-u_int8_t ndpi_search_irc_ssl_detect_ninety_percent_but_very_fast(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static u_int8_t ndpi_search_irc_ssl_detect_ninety_percent_but_very_fast(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
@@ -338,7 +338,7 @@ u_int8_t ndpi_search_irc_ssl_detect_ninety_percent_but_very_fast(struct ndpi_det
}
-void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_irc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/jabber.c b/src/lib/protocols/jabber.c
index 7a8c3a3d7..df286f171 100644
--- a/src/lib/protocols/jabber.c
+++ b/src/lib/protocols/jabber.c
@@ -62,7 +62,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
}
}
-void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_jabber_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t const max_packets = 4;
diff --git a/src/lib/protocols/kakaotalk_voice.c b/src/lib/protocols/kakaotalk_voice.c
index 5919ef914..dde13cde7 100644
--- a/src/lib/protocols/kakaotalk_voice.c
+++ b/src/lib/protocols/kakaotalk_voice.c
@@ -31,7 +31,7 @@
#include "ndpi_api.h"
-void ndpi_search_kakaotalk_voice(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_kakaotalk_voice(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search kakaotalk_voice\n");
diff --git a/src/lib/protocols/kerberos.c b/src/lib/protocols/kerberos.c
index 040f51d8a..68dda46c9 100644
--- a/src/lib/protocols/kerberos.c
+++ b/src/lib/protocols/kerberos.c
@@ -304,8 +304,8 @@ static void ndpi_int_kerberos_add_connection(struct ndpi_detection_module_struct
/* ************************************************* */
-void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t sport = packet->tcp ? ntohs(packet->tcp->source) : ntohs(packet->udp->source);
u_int16_t dport = packet->tcp ? ntohs(packet->tcp->dest) : ntohs(packet->udp->dest);
diff --git a/src/lib/protocols/kismet.c b/src/lib/protocols/kismet.c
index dbbbe04a2..5bdbaad58 100644
--- a/src/lib/protocols/kismet.c
+++ b/src/lib/protocols/kismet.c
@@ -35,8 +35,8 @@ static void ndpi_int_kismet_add_connection(struct ndpi_detection_module_struct *
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_kismet(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_kismet(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/kontiki.c b/src/lib/protocols/kontiki.c
index acb57ca7d..2186bde40 100644
--- a/src/lib/protocols/kontiki.c
+++ b/src/lib/protocols/kontiki.c
@@ -37,7 +37,7 @@ static void ndpi_int_kontiki_add_connection(struct ndpi_detection_module_struct
NDPI_LOG_INFO(ndpi_struct, "found Kontiki UDP\n");
}
-void ndpi_search_kontiki(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_kontiki(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ldap.c b/src/lib/protocols/ldap.c
index ffd2fc306..a7c64807e 100644
--- a/src/lib/protocols/ldap.c
+++ b/src/lib/protocols/ldap.c
@@ -35,7 +35,7 @@ static void ndpi_int_ldap_add_connection(struct ndpi_detection_module_struct *nd
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_LDAP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_ldap(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ldap(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
int64_t length;
diff --git a/src/lib/protocols/line.c b/src/lib/protocols/line.c
index e7e7f422b..9c7b65596 100644
--- a/src/lib/protocols/line.c
+++ b/src/lib/protocols/line.c
@@ -35,8 +35,8 @@ static void ndpi_int_line_add_connection(struct ndpi_detection_module_struct * c
NDPI_PROTOCOL_LINE_CALL, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_line(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/lisp.c b/src/lib/protocols/lisp.c
index 48b5e34ba..0c4180be4 100644
--- a/src/lib/protocols/lisp.c
+++ b/src/lib/protocols/lisp.c
@@ -72,7 +72,7 @@ static void ndpi_check_lisp(struct ndpi_detection_module_struct *ndpi_struct, st
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_lisp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_lisp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search lisp\n");
diff --git a/src/lib/protocols/lotus_notes.c b/src/lib/protocols/lotus_notes.c
index e7e72cfdc..5b6a79219 100644
--- a/src/lib/protocols/lotus_notes.c
+++ b/src/lib/protocols/lotus_notes.c
@@ -51,7 +51,7 @@ static void ndpi_check_lotus_notes(struct ndpi_detection_module_struct *ndpi_str
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_lotus_notes(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_lotus_notes(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search lotus_notes\n");
diff --git a/src/lib/protocols/mail_imap.c b/src/lib/protocols/mail_imap.c
index 08df418e5..d864c4f36 100644
--- a/src/lib/protocols/mail_imap.c
+++ b/src/lib/protocols/mail_imap.c
@@ -39,7 +39,7 @@ static void ndpi_int_mail_imap_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, protocol, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t i = 0;
diff --git a/src/lib/protocols/mail_pop.c b/src/lib/protocols/mail_pop.c
index 16190fd15..0a1e7d8ee 100644
--- a/src/lib/protocols/mail_pop.c
+++ b/src/lib/protocols/mail_pop.c
@@ -155,8 +155,8 @@ static int ndpi_int_mail_pop_check_for_client_commands(struct ndpi_detection_mod
-void ndpi_search_mail_pop_tcp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_mail_pop_tcp(struct ndpi_detection_module_struct
+ *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int8_t a = 0;
diff --git a/src/lib/protocols/mail_smtp.c b/src/lib/protocols/mail_smtp.c
index af87e2b58..95e24c86c 100644
--- a/src/lib/protocols/mail_smtp.c
+++ b/src/lib/protocols/mail_smtp.c
@@ -118,8 +118,8 @@ static void get_credentials_auth_plain(struct ndpi_detection_module_struct *ndpi
/* **************************************** */
-void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_mail_smtp_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search mail_smtp\n");
diff --git a/src/lib/protocols/maplestory.c b/src/lib/protocols/maplestory.c
index 33e2540a6..f47002b98 100644
--- a/src/lib/protocols/maplestory.c
+++ b/src/lib/protocols/maplestory.c
@@ -34,7 +34,7 @@ static void ndpi_int_maplestory_add_connection(struct ndpi_detection_module_stru
}
-void ndpi_search_maplestory(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_maplestory(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/megaco.c b/src/lib/protocols/megaco.c
index addff2535..615382055 100644
--- a/src/lib/protocols/megaco.c
+++ b/src/lib/protocols/megaco.c
@@ -25,8 +25,8 @@
#include "ndpi_api.h"
-void ndpi_search_megaco(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_megaco(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/memcached.c b/src/lib/protocols/memcached.c
index b727c6034..5984ae896 100644
--- a/src/lib/protocols/memcached.c
+++ b/src/lib/protocols/memcached.c
@@ -99,9 +99,8 @@ static void ndpi_int_memcached_add_connection(struct ndpi_detection_module_struc
NDPI_PROTOCOL_MEMCACHED, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_memcached(
- struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_memcached(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
const u_int8_t *offset = packet->payload;
diff --git a/src/lib/protocols/mgcp.c b/src/lib/protocols/mgcp.c
index dfbbbcec5..a27959fb6 100644
--- a/src/lib/protocols/mgcp.c
+++ b/src/lib/protocols/mgcp.c
@@ -35,7 +35,7 @@ static void ndpi_int_mgcp_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_mgcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_mgcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/mining.c b/src/lib/protocols/mining.c
index 49d91e738..c6a3420b7 100644
--- a/src/lib/protocols/mining.c
+++ b/src/lib/protocols/mining.c
@@ -172,8 +172,8 @@ static void ndpi_search_mining_tcp(struct ndpi_detection_module_struct *ndpi_str
/* ************************************************************************** */
-void ndpi_search_mining(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_mining(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
if(packet->tcp)
diff --git a/src/lib/protocols/modbus.c b/src/lib/protocols/modbus.c
index d00b5aa01..083740d9f 100644
--- a/src/lib/protocols/modbus.c
+++ b/src/lib/protocols/modbus.c
@@ -27,8 +27,8 @@
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_MODBUS
#include "ndpi_api.h"
-void ndpi_search_modbus_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_modbus_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search Modbus\n");
u_int16_t modbus_port = htons(502); // port used by modbus
diff --git a/src/lib/protocols/mongodb.c b/src/lib/protocols/mongodb.c
index fe820dd46..1bf77fd57 100644
--- a/src/lib/protocols/mongodb.c
+++ b/src/lib/protocols/mongodb.c
@@ -119,8 +119,8 @@ static void ndpi_check_mongodb(struct ndpi_detection_module_struct *ndpi_struct,
}
}
-void ndpi_search_mongodb(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_mongodb(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
// Break after 6 packets.
if(flow->packet_counter > 6) {
diff --git a/src/lib/protocols/mpegdash.c b/src/lib/protocols/mpegdash.c
index fa39961b6..252496f02 100644
--- a/src/lib/protocols/mpegdash.c
+++ b/src/lib/protocols/mpegdash.c
@@ -36,8 +36,8 @@ static void ndpi_int_mpegdash_add_connection(struct ndpi_detection_module_struct
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_mpegdash_http(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/mpegts.c b/src/lib/protocols/mpegts.c
index 88472fc01..82d8fe95d 100644
--- a/src/lib/protocols/mpegts.c
+++ b/src/lib/protocols/mpegts.c
@@ -25,7 +25,7 @@
#include "ndpi_api.h"
-void ndpi_search_mpegts(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_mpegts(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/mqtt.c b/src/lib/protocols/mqtt.c
index 2e66e1bdc..8338bfa90 100644
--- a/src/lib/protocols/mqtt.c
+++ b/src/lib/protocols/mqtt.c
@@ -82,8 +82,8 @@ static int64_t get_var_int(const unsigned char *buf, int buf_len, u_int8_t *num_
/**
* Dissector function that searches Mqtt headers
*/
-void ndpi_search_mqtt (struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_mqtt(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
u_int8_t pt,flags, rl_len;
int64_t rl;
diff --git a/src/lib/protocols/mssql_tds.c b/src/lib/protocols/mssql_tds.c
index 1f8b89b57..c48646f24 100644
--- a/src/lib/protocols/mssql_tds.c
+++ b/src/lib/protocols/mssql_tds.c
@@ -44,7 +44,7 @@ static void ndpi_int_mssql_tds_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MSSQL_TDS, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_mssql_tds(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_mssql_tds(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
struct tds_packet_header *h = (struct tds_packet_header*) packet->payload;
diff --git a/src/lib/protocols/munin.c b/src/lib/protocols/munin.c
index b99b5edae..c8e67e2c2 100644
--- a/src/lib/protocols/munin.c
+++ b/src/lib/protocols/munin.c
@@ -38,8 +38,8 @@ static void ndpi_int_munin_add_connection(struct ndpi_detection_module_struct *
/* ***************************************************** */
-void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_munin(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
static char const munin_prefix[] = "# munin node at ";
diff --git a/src/lib/protocols/mysql.c b/src/lib/protocols/mysql.c
index 4aba95798..58e3c8f51 100644
--- a/src/lib/protocols/mysql.c
+++ b/src/lib/protocols/mysql.c
@@ -29,7 +29,7 @@
#include "ndpi_api.h"
-void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search MySQL\n");
diff --git a/src/lib/protocols/natpmp.c b/src/lib/protocols/natpmp.c
index 6dcc017e1..f986fdb98 100644
--- a/src/lib/protocols/natpmp.c
+++ b/src/lib/protocols/natpmp.c
@@ -162,8 +162,8 @@ static int ndpi_search_natpmp_extra(struct ndpi_detection_module_struct *ndpi_st
return 1;
}
-void ndpi_search_natpmp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_natpmp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
enum natpmp_type natpmp_type;
diff --git a/src/lib/protocols/nats.c b/src/lib/protocols/nats.c
index 6048b1e43..5bcaa52ce 100644
--- a/src/lib/protocols/nats.c
+++ b/src/lib/protocols/nats.c
@@ -37,8 +37,8 @@ static const char* commands[] =
NULL
};
-void ndpi_search_nats_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_nats_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
/* Check connection over TCP */
diff --git a/src/lib/protocols/nest_log_sink.c b/src/lib/protocols/nest_log_sink.c
index c26fc722a..fd216ce72 100644
--- a/src/lib/protocols/nest_log_sink.c
+++ b/src/lib/protocols/nest_log_sink.c
@@ -33,9 +33,8 @@
#define NEST_LOG_SINK_MIN_LEN 8
#define NEST_LOG_SINK_MIN_MATCH 3
-void ndpi_search_nest_log_sink(
- struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_nest_log_sink(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/netbios.c b/src/lib/protocols/netbios.c
index fbfbea277..a84333d5f 100644
--- a/src/lib/protocols/netbios.c
+++ b/src/lib/protocols/netbios.c
@@ -115,8 +115,8 @@ static void ndpi_int_netbios_add_connection(struct ndpi_detection_module_struct
/* ****************************************************************** */
-void ndpi_search_netbios(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_netbios(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t dport;
diff --git a/src/lib/protocols/netflow.c b/src/lib/protocols/netflow.c
index 239e7e29f..97b8cef99 100644
--- a/src/lib/protocols/netflow.c
+++ b/src/lib/protocols/netflow.c
@@ -97,7 +97,7 @@ struct flow_ver7_rec {
u_int32_t router_sc; /* Router which is shortcut by switch */
};
-void ndpi_search_netflow(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_netflow(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
// const u_int8_t *packet_payload = packet->payload;
diff --git a/src/lib/protocols/nfs.c b/src/lib/protocols/nfs.c
index 68e3d07bf..55db41f54 100644
--- a/src/lib/protocols/nfs.c
+++ b/src/lib/protocols/nfs.c
@@ -36,7 +36,7 @@ static void ndpi_int_nfs_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_NFS, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_nfs(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_nfs(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/nintendo.c b/src/lib/protocols/nintendo.c
index ca12124e2..18b961986 100644
--- a/src/lib/protocols/nintendo.c
+++ b/src/lib/protocols/nintendo.c
@@ -34,7 +34,7 @@ static void ndpi_int_nintendo_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_nintendo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_nintendo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int32_t payload_len = packet->payload_packet_len;
diff --git a/src/lib/protocols/noe.c b/src/lib/protocols/noe.c
index cafe50df2..f72ddf8b2 100644
--- a/src/lib/protocols/noe.c
+++ b/src/lib/protocols/noe.c
@@ -36,8 +36,8 @@ static void ndpi_int_noe_add_connection(struct ndpi_detection_module_struct
NDPI_LOG_INFO(ndpi_struct, "found noe\n");
}
-void ndpi_search_noe(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_noe(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/non_tcp_udp.c b/src/lib/protocols/non_tcp_udp.c
index c023029e6..62ef9b02b 100644
--- a/src/lib/protocols/non_tcp_udp.c
+++ b/src/lib/protocols/non_tcp_udp.c
@@ -37,8 +37,8 @@
}
-void ndpi_search_in_non_tcp_udp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_in_non_tcp_udp(struct ndpi_detection_module_struct
+ *ndpi_struct, struct ndpi_flow_struct *flow)
{
switch (flow->l4_proto) {
case NDPI_IPSEC_PROTOCOL_ESP:
diff --git a/src/lib/protocols/ntp.c b/src/lib/protocols/ntp.c
index e4552968f..7737bfa0e 100644
--- a/src/lib/protocols/ntp.c
+++ b/src/lib/protocols/ntp.c
@@ -34,7 +34,7 @@ static void ndpi_int_ntp_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_NTP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_ntp_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ntp_udp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ookla.c b/src/lib/protocols/ookla.c
index f9a7a2d94..0da42212c 100644
--- a/src/lib/protocols/ookla.c
+++ b/src/lib/protocols/ookla.c
@@ -27,7 +27,7 @@ const u_int16_t ookla_port = 8080;
/* ************************************************************* */
-void ndpi_search_ookla(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
+static void ndpi_search_ookla(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
u_int32_t addr = 0;
u_int16_t sport, dport;
diff --git a/src/lib/protocols/openvpn.c b/src/lib/protocols/openvpn.c
index d124c24f1..1154f9aff 100644
--- a/src/lib/protocols/openvpn.c
+++ b/src/lib/protocols/openvpn.c
@@ -79,8 +79,8 @@ int8_t check_pkid_and_detect_hmac_size(const u_int8_t * payload) {
return(-1);
}
-void ndpi_search_openvpn(struct ndpi_detection_module_struct* ndpi_struct,
- struct ndpi_flow_struct* flow) {
+static void ndpi_search_openvpn(struct ndpi_detection_module_struct* ndpi_struct,
+ struct ndpi_flow_struct* flow) {
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
const u_int8_t * ovpn_payload = packet->payload;
const u_int8_t * session_remote;
diff --git a/src/lib/protocols/oracle.c b/src/lib/protocols/oracle.c
index 7049c7db0..b9be7102d 100644
--- a/src/lib/protocols/oracle.c
+++ b/src/lib/protocols/oracle.c
@@ -31,7 +31,7 @@ static void ndpi_int_oracle_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_ORACLE, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_oracle(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_oracle(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t dport = 0, sport = 0;
diff --git a/src/lib/protocols/postgres.c b/src/lib/protocols/postgres.c
index a55f0ad45..3bc51d96d 100644
--- a/src/lib/protocols/postgres.c
+++ b/src/lib/protocols/postgres.c
@@ -36,8 +36,8 @@ static void ndpi_int_postgres_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_POSTGRES, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_postgres_tcp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_postgres_tcp(struct ndpi_detection_module_struct
+ *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ppstream.c b/src/lib/protocols/ppstream.c
index 891a4de1b..78dc25393 100644
--- a/src/lib/protocols/ppstream.c
+++ b/src/lib/protocols/ppstream.c
@@ -38,8 +38,8 @@ static void ndpi_int_ppstream_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_ppstream(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ppstream(struct ndpi_detection_module_struct
+ *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/pptp.c b/src/lib/protocols/pptp.c
index 69a067f1b..6cc41bd44 100644
--- a/src/lib/protocols/pptp.c
+++ b/src/lib/protocols/pptp.c
@@ -34,8 +34,8 @@ static void ndpi_int_pptp_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_PPTP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_pptp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_pptp(struct ndpi_detection_module_struct
+ *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/qq.c b/src/lib/protocols/qq.c
index ffbbb3e3b..c091457a2 100644
--- a/src/lib/protocols/qq.c
+++ b/src/lib/protocols/qq.c
@@ -37,7 +37,7 @@ static void ndpi_int_qq_add_connection(struct ndpi_detection_module_struct *ndpi
}
-void ndpi_search_qq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_qq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c
index 72e400c01..ae7a97465 100644
--- a/src/lib/protocols/quic.c
+++ b/src/lib/protocols/quic.c
@@ -246,7 +246,7 @@ static uint16_t gquic_get_u16(const uint8_t *buf, uint32_t version)
}
-char *__gcry_err(gpg_error_t err, char *buf, size_t buflen)
+static char *__gcry_err(gpg_error_t err, char *buf, size_t buflen)
{
gpg_strerror_r(err, buf, buflen);
/* I am not sure if the string will be always null-terminated...
diff --git a/src/lib/protocols/radius.c b/src/lib/protocols/radius.c
index 2107bc442..fe32812b8 100644
--- a/src/lib/protocols/radius.c
+++ b/src/lib/protocols/radius.c
@@ -66,7 +66,7 @@ static void ndpi_check_radius(struct ndpi_detection_module_struct *ndpi_struct,
}
}
-void ndpi_search_radius(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_radius(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search radius\n");
diff --git a/src/lib/protocols/raknet.c b/src/lib/protocols/raknet.c
index 260a74e54..d1deaec22 100644
--- a/src/lib/protocols/raknet.c
+++ b/src/lib/protocols/raknet.c
@@ -47,8 +47,8 @@ static size_t raknet_dissect_ip(struct ndpi_packet_struct * const packet, size_t
}
/* Reference: https://wiki.vg/Raknet_Protocol */
-void ndpi_search_raknet(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_raknet(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * const packet = &ndpi_struct->packet;
u_int8_t op, ip_addr_offset, required_packets = 3;
diff --git a/src/lib/protocols/rdp.c b/src/lib/protocols/rdp.c
index 9f6a6a530..dfc47d72b 100644
--- a/src/lib/protocols/rdp.c
+++ b/src/lib/protocols/rdp.c
@@ -36,8 +36,8 @@ static void ndpi_int_rdp_add_connection(struct ndpi_detection_module_struct *ndp
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RDP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_rdp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_rdp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search RDP\n");
diff --git a/src/lib/protocols/redis_net.c b/src/lib/protocols/redis_net.c
index 1fedafdea..c9bceb050 100644
--- a/src/lib/protocols/redis_net.c
+++ b/src/lib/protocols/redis_net.c
@@ -73,7 +73,7 @@ static void ndpi_check_redis(struct ndpi_detection_module_struct *ndpi_struct, s
return; /* Too early */
}
-void ndpi_search_redis(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_redis(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search Redis\n");
/* skip marked packets */
diff --git a/src/lib/protocols/riotgames.c b/src/lib/protocols/riotgames.c
index 24e101f10..687f950fc 100644
--- a/src/lib/protocols/riotgames.c
+++ b/src/lib/protocols/riotgames.c
@@ -35,8 +35,8 @@ static void ndpi_int_riotgames_add_connection(struct ndpi_detection_module_struc
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_riotgames(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_riotgames(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/rsh.c b/src/lib/protocols/rsh.c
index e2431dfb6..04a69463e 100644
--- a/src/lib/protocols/rsh.c
+++ b/src/lib/protocols/rsh.c
@@ -36,8 +36,8 @@ static void ndpi_int_rsh_add_connection(struct ndpi_detection_module_struct * nd
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_rsh(struct ndpi_detection_module_struct * ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_rsh(struct ndpi_detection_module_struct * ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/rsync.c b/src/lib/protocols/rsync.c
index ba5b114ee..580276e9c 100644
--- a/src/lib/protocols/rsync.c
+++ b/src/lib/protocols/rsync.c
@@ -31,7 +31,7 @@ static void ndpi_int_rsync_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_RSYNC, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_rsync(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_rsync(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/rtcp.c b/src/lib/protocols/rtcp.c
index e09432711..e79738fd4 100644
--- a/src/lib/protocols/rtcp.c
+++ b/src/lib/protocols/rtcp.c
@@ -17,8 +17,8 @@ static void ndpi_int_rtcp_add_connection(struct ndpi_detection_module_struct
NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_rtcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_rtcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t dport = 0, sport = 0;
diff --git a/src/lib/protocols/rtmp.c b/src/lib/protocols/rtmp.c
index 8bcb57e18..d20ec3747 100644
--- a/src/lib/protocols/rtmp.c
+++ b/src/lib/protocols/rtmp.c
@@ -76,7 +76,7 @@ static void ndpi_check_rtmp(struct ndpi_detection_module_struct *ndpi_struct, st
}
}
-void ndpi_search_rtmp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_rtmp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search RTMP\n");
diff --git a/src/lib/protocols/rtsp.c b/src/lib/protocols/rtsp.c
index 4eee837eb..1dc63f04b 100644
--- a/src/lib/protocols/rtsp.c
+++ b/src/lib/protocols/rtsp.c
@@ -37,8 +37,8 @@ static void ndpi_int_rtsp_add_connection(struct ndpi_detection_module_struct *nd
}
/* this function searches for a rtsp-"handshake" over tcp or udp. */
-void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_rtsp_tcp_udp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/rx.c b/src/lib/protocols/rx.c
index 53e9182c9..3a2c9580a 100644
--- a/src/lib/protocols/rx.c
+++ b/src/lib/protocols/rx.c
@@ -76,8 +76,8 @@ struct ndpi_rx_header {
-void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int32_t payload_len = packet->payload_packet_len;
@@ -202,8 +202,8 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
}
}
-void ndpi_search_rx(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_rx(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search RX\n");
if (flow->detected_protocol_stack[0] != NDPI_PROTOCOL_RX) {
diff --git a/src/lib/protocols/s7comm.c b/src/lib/protocols/s7comm.c
index 052796bc0..c7488b104 100644
--- a/src/lib/protocols/s7comm.c
+++ b/src/lib/protocols/s7comm.c
@@ -24,8 +24,8 @@
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_S7COMM
#include "ndpi_api.h"
-void ndpi_search_s7comm_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_s7comm_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search S7\n");
u_int16_t s7comm_port = htons(102);
diff --git a/src/lib/protocols/sd_rtn.c b/src/lib/protocols/sd_rtn.c
index 7302a883c..212ac6e42 100644
--- a/src/lib/protocols/sd_rtn.c
+++ b/src/lib/protocols/sd_rtn.c
@@ -55,8 +55,8 @@ static int ndpi_int_sd_rtn_dissect_sni(struct ndpi_flow_struct * const flow,
return 0;
}
-void ndpi_search_sd_rtn(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_sd_rtn(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/sflow.c b/src/lib/protocols/sflow.c
index 37187b194..a2d704f7f 100644
--- a/src/lib/protocols/sflow.c
+++ b/src/lib/protocols/sflow.c
@@ -24,7 +24,7 @@
#include "ndpi_api.h"
-void ndpi_search_sflow(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_sflow(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
// const u_int8_t *packet_payload = packet->payload;
diff --git a/src/lib/protocols/sip.c b/src/lib/protocols/sip.c
index 5389fadba..df70fdfca 100644
--- a/src/lib/protocols/sip.c
+++ b/src/lib/protocols/sip.c
@@ -193,7 +193,7 @@ void ndpi_search_sip_handshake(struct ndpi_detection_module_struct
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_sip(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_sip(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search sip\n");
diff --git a/src/lib/protocols/skinny.c b/src/lib/protocols/skinny.c
index ec4e18483..c7c516d2a 100644
--- a/src/lib/protocols/skinny.c
+++ b/src/lib/protocols/skinny.c
@@ -59,7 +59,7 @@ static int is_valid_opcode(u_int32_t opcode)
return 0;
}
-void ndpi_search_skinny(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_skinny(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t dport, sport;
diff --git a/src/lib/protocols/skype.c b/src/lib/protocols/skype.c
index 6b9c3cf69..d0d3c8060 100644
--- a/src/lib/protocols/skype.c
+++ b/src/lib/protocols/skype.c
@@ -105,7 +105,7 @@ static void ndpi_check_skype(struct ndpi_detection_module_struct *ndpi_struct, s
}
}
-void ndpi_search_skype(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_skype(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search skype\n");
diff --git a/src/lib/protocols/smb.c b/src/lib/protocols/smb.c
index 92db71836..25cb2ee67 100644
--- a/src/lib/protocols/smb.c
+++ b/src/lib/protocols/smb.c
@@ -25,7 +25,7 @@
#include "ndpi_api.h"
-void ndpi_search_smb_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_smb_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/smpp.c b/src/lib/protocols/smpp.c
index 0ff1f4de4..16628e709 100644
--- a/src/lib/protocols/smpp.c
+++ b/src/lib/protocols/smpp.c
@@ -38,8 +38,8 @@ static u_int8_t ndpi_check_overflow(u_int32_t current_length, u_int32_t total_l
return (current_length > 0 && current_length > INT_MAX - total_lenth);
}
-void ndpi_search_smpp_tcp(struct ndpi_detection_module_struct* ndpi_struct,
- struct ndpi_flow_struct* flow)
+static void ndpi_search_smpp_tcp(struct ndpi_detection_module_struct* ndpi_struct,
+ struct ndpi_flow_struct* flow)
{
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/snmp_proto.c b/src/lib/protocols/snmp_proto.c
index c59509c48..f4678afce 100644
--- a/src/lib/protocols/snmp_proto.c
+++ b/src/lib/protocols/snmp_proto.c
@@ -54,8 +54,8 @@ static int ndpi_search_snmp_again(struct ndpi_detection_module_struct *ndpi_stru
/* *************************************************************** */
-void ndpi_search_snmp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_snmp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t snmp_port = htons(161), trap_port = htons(162);
diff --git a/src/lib/protocols/soap.c b/src/lib/protocols/soap.c
index 9b51a84d4..18e636b57 100644
--- a/src/lib/protocols/soap.c
+++ b/src/lib/protocols/soap.c
@@ -32,8 +32,8 @@ static void ndpi_int_soap_add_connection(struct ndpi_detection_module_struct *nd
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_soap(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_soap(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/socks45.c b/src/lib/protocols/socks45.c
index 72703db96..3d7d43799 100644
--- a/src/lib/protocols/socks45.c
+++ b/src/lib/protocols/socks45.c
@@ -117,7 +117,7 @@ static void ndpi_check_socks5(struct ndpi_detection_module_struct *ndpi_struct,
}
}
-void ndpi_search_socks(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_socks(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search SOCKS\n");
diff --git a/src/lib/protocols/softether.c b/src/lib/protocols/softether.c
index 57a2fddff..f889cf09f 100644
--- a/src/lib/protocols/softether.c
+++ b/src/lib/protocols/softether.c
@@ -288,8 +288,8 @@ static int dissect_softether_ip_port(struct ndpi_flow_struct *flow,
/* ***************************************************** */
-void ndpi_search_softether(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_softether(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search softether\n");
diff --git a/src/lib/protocols/someip.c b/src/lib/protocols/someip.c
index 30c21dee8..be8391821 100644
--- a/src/lib/protocols/someip.c
+++ b/src/lib/protocols/someip.c
@@ -92,8 +92,8 @@ static u_int32_t someip_data_cover_32(const u_int8_t *data)
/**
* Dissector function that searches SOME/IP headers
*/
-void ndpi_search_someip (struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_someip(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
const struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/spotify.c b/src/lib/protocols/spotify.c
index b09a7b595..6dd63a868 100644
--- a/src/lib/protocols/spotify.c
+++ b/src/lib/protocols/spotify.c
@@ -68,7 +68,7 @@ static void ndpi_check_spotify(struct ndpi_detection_module_struct *ndpi_struct,
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_spotify(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_spotify(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search spotify\n");
diff --git a/src/lib/protocols/ssdp.c b/src/lib/protocols/ssdp.c
index 45d2b8aa8..5d832367a 100644
--- a/src/lib/protocols/ssdp.c
+++ b/src/lib/protocols/ssdp.c
@@ -61,7 +61,7 @@ static void ndpi_int_ssdp_add_connection(struct ndpi_detection_module_struct
}
/* this detection also works asymmetrically */
-void ndpi_search_ssdp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ssdp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/starcraft.c b/src/lib/protocols/starcraft.c
index d7368c4ca..b947e433e 100644
--- a/src/lib/protocols/starcraft.c
+++ b/src/lib/protocols/starcraft.c
@@ -27,7 +27,7 @@
/* Sender or receiver are one of the known login portals? */
-u_int8_t sc2_match_logon_ip(struct ndpi_packet_struct* packet)
+static u_int8_t sc2_match_logon_ip(struct ndpi_packet_struct* packet)
{
if (packet->iph == NULL)
return 0;
@@ -47,7 +47,7 @@ u_int8_t sc2_match_logon_ip(struct ndpi_packet_struct* packet)
transfer generated by the user interaction with the client, e.g. chatting or looking at someone's
match history. The current way to detect this is plain dumb packet matching.
*/
-u_int8_t ndpi_check_starcraft_tcp(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
+static u_int8_t ndpi_check_starcraft_tcp(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
{
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
@@ -66,7 +66,7 @@ u_int8_t ndpi_check_starcraft_tcp(struct ndpi_detection_module_struct* ndpi_stru
some other Blizzard software.
The flow is taken if a pattern in the size of some subsequent packets is found.
*/
-u_int8_t ndpi_check_starcraft_udp(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
+static u_int8_t ndpi_check_starcraft_udp(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
{
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
@@ -114,7 +114,7 @@ u_int8_t ndpi_check_starcraft_udp(struct ndpi_detection_module_struct* ndpi_stru
return(0);
}
-void ndpi_search_starcraft(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
+static void ndpi_search_starcraft(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
{
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/steam.c b/src/lib/protocols/steam.c
index a53d12848..682628bab 100644
--- a/src/lib/protocols/steam.c
+++ b/src/lib/protocols/steam.c
@@ -254,7 +254,7 @@ static void ndpi_check_steam_udp3(struct ndpi_detection_module_struct *ndpi_stru
}
}
-void ndpi_search_steam(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_steam(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
if(packet->udp != NULL) {
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index 6792bfe8a..80e577ab1 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -461,7 +461,7 @@ stun_found:
return rc;
}
-void ndpi_search_stun(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_stun(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t app_proto;
diff --git a/src/lib/protocols/syncthing.c b/src/lib/protocols/syncthing.c
index 9ccb3d97f..424b91bab 100644
--- a/src/lib/protocols/syncthing.c
+++ b/src/lib/protocols/syncthing.c
@@ -35,8 +35,8 @@ static void ndpi_int_syncthing_add_connection(struct ndpi_detection_module_struc
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_syncthing(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_syncthing(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/syslog.c b/src/lib/protocols/syslog.c
index e6e8079e0..640ce21d8 100644
--- a/src/lib/protocols/syslog.c
+++ b/src/lib/protocols/syslog.c
@@ -34,8 +34,8 @@ static void ndpi_int_syslog_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SYSLOG, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_syslog(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_syslog(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int16_t i;
diff --git a/src/lib/protocols/teamspeak.c b/src/lib/protocols/teamspeak.c
index a017ff1d2..f38962b31 100644
--- a/src/lib/protocols/teamspeak.c
+++ b/src/lib/protocols/teamspeak.c
@@ -30,7 +30,7 @@ static void ndpi_int_teamspeak_add_connection(struct ndpi_detection_module_struc
}
-void ndpi_search_teamspeak(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_teamspeak(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/teamviewer.c b/src/lib/protocols/teamviewer.c
index 6f9b6270c..b9030d2fd 100644
--- a/src/lib/protocols/teamviewer.c
+++ b/src/lib/protocols/teamviewer.c
@@ -37,7 +37,7 @@ static void ndpi_int_teamview_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_teamview(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_teamview(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/telegram.c b/src/lib/protocols/telegram.c
index ec9179b93..63fcd01b6 100644
--- a/src/lib/protocols/telegram.c
+++ b/src/lib/protocols/telegram.c
@@ -43,8 +43,8 @@ static u_int8_t is_telegram_port_range(u_int16_t port) {
return(0);
}
-void ndpi_search_telegram(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_telegram(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search telegram\n");
diff --git a/src/lib/protocols/telnet.c b/src/lib/protocols/telnet.c
index 9f967a8d8..a4dd107c6 100644
--- a/src/lib/protocols/telnet.c
+++ b/src/lib/protocols/telnet.c
@@ -184,8 +184,8 @@ u_int8_t search_iac(struct ndpi_detection_module_struct *ndpi_struct,
/* ************************************************************************ */
/* this detection also works asymmetrically */
-void ndpi_search_telnet_tcp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_telnet_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search telnet\n");
if(search_iac(ndpi_struct, flow) == 1) {
diff --git a/src/lib/protocols/teredo.c b/src/lib/protocols/teredo.c
index 00be54715..f1d1f07af 100644
--- a/src/lib/protocols/teredo.c
+++ b/src/lib/protocols/teredo.c
@@ -25,7 +25,7 @@
#include "ndpi_api.h"
/* https://en.wikipedia.org/wiki/Teredo_tunneling */
-void ndpi_search_teredo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_teredo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/tftp.c b/src/lib/protocols/tftp.c
index 58e585461..dfdd60517 100644
--- a/src/lib/protocols/tftp.c
+++ b/src/lib/protocols/tftp.c
@@ -36,8 +36,8 @@ static void ndpi_int_tftp_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TFTP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_tftp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_tftp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/tinc.c b/src/lib/protocols/tinc.c
index 55fcc3d86..1451be68c 100644
--- a/src/lib/protocols/tinc.c
+++ b/src/lib/protocols/tinc.c
@@ -132,7 +132,7 @@ static void ndpi_check_tinc(struct ndpi_detection_module_struct *ndpi_struct, st
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
-void ndpi_search_tinc(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
+static void ndpi_search_tinc(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow) {
NDPI_LOG_DBG(ndpi_struct, "tinc detection\n");
if(flow->detected_protocol_stack[0] != NDPI_PROTOCOL_TINC) {
diff --git a/src/lib/protocols/tivoconnect.c b/src/lib/protocols/tivoconnect.c
index de0417feb..6bbe6cca6 100644
--- a/src/lib/protocols/tivoconnect.c
+++ b/src/lib/protocols/tivoconnect.c
@@ -112,8 +112,8 @@ static void dissect_tivoconnect_data(struct ndpi_detection_module_struct *ndpi_s
}
}
-void ndpi_search_tivoconnect(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_tivoconnect(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/tocaboca.c b/src/lib/protocols/tocaboca.c
index cbea2ad81..2de13f8f2 100644
--- a/src/lib/protocols/tocaboca.c
+++ b/src/lib/protocols/tocaboca.c
@@ -32,8 +32,8 @@ static void ndpi_int_toca_boca_add_connection(struct ndpi_detection_module_struc
NDPI_PROTOCOL_TOCA_BOCA, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_toca_boca(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_toca_boca(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int32_t payload_len = packet->payload_packet_len;
diff --git a/src/lib/protocols/tplink_shp.c b/src/lib/protocols/tplink_shp.c
index 6301fd7ea..df409ac41 100644
--- a/src/lib/protocols/tplink_shp.c
+++ b/src/lib/protocols/tplink_shp.c
@@ -43,8 +43,8 @@ static void ndpi_int_tplink_shp_add_connection(struct ndpi_detection_module_stru
/* ***************************************************** */
-void ndpi_search_tplink_shp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_tplink_shp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/tuya_lp.c b/src/lib/protocols/tuya_lp.c
index 2e2c2b0f1..7c3e50a1e 100644
--- a/src/lib/protocols/tuya_lp.c
+++ b/src/lib/protocols/tuya_lp.c
@@ -38,8 +38,8 @@ static void ndpi_int_tuya_lp_add_connection(struct ndpi_detection_module_struct
/* ***************************************************** */
-void ndpi_search_tuya_lp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_tuya_lp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/tvuplayer.c b/src/lib/protocols/tvuplayer.c
index 0268d79b9..4ea58edca 100644
--- a/src/lib/protocols/tvuplayer.c
+++ b/src/lib/protocols/tvuplayer.c
@@ -35,7 +35,7 @@ static void ndpi_int_tvuplayer_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TVUPLAYER, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_tvuplayer(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_tvuplayer(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ubntac2.c b/src/lib/protocols/ubntac2.c
index f36370555..1c42f3e21 100644
--- a/src/lib/protocols/ubntac2.c
+++ b/src/lib/protocols/ubntac2.c
@@ -31,7 +31,7 @@ static void ndpi_int_ubntac2_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_ubntac2(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_ubntac2(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/ultrasurf.c b/src/lib/protocols/ultrasurf.c
index 4875e8204..ed8dbf12d 100644
--- a/src/lib/protocols/ultrasurf.c
+++ b/src/lib/protocols/ultrasurf.c
@@ -35,8 +35,8 @@ static void ndpi_int_ultrasurf_add_connection(struct ndpi_detection_module_struc
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_ultrasurf(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow)
+static void ndpi_search_ultrasurf(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct const * const packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/usenet.c b/src/lib/protocols/usenet.c
index 7ab580335..7d1280ef8 100644
--- a/src/lib/protocols/usenet.c
+++ b/src/lib/protocols/usenet.c
@@ -37,8 +37,8 @@ static void ndpi_int_usenet_add_connection(struct ndpi_detection_module_struct
-void ndpi_search_usenet_tcp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_usenet_tcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/vhua.c b/src/lib/protocols/vhua.c
index 9a97d7563..6b0e29276 100644
--- a/src/lib/protocols/vhua.c
+++ b/src/lib/protocols/vhua.c
@@ -51,7 +51,7 @@ static void ndpi_check_vhua(struct ndpi_detection_module_struct *ndpi_struct, st
}
}
-void ndpi_search_vhua(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_vhua(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search VHUA\n");
/* skip marked packets */
diff --git a/src/lib/protocols/viber.c b/src/lib/protocols/viber.c
index 78a214605..702da205b 100644
--- a/src/lib/protocols/viber.c
+++ b/src/lib/protocols/viber.c
@@ -35,7 +35,7 @@ static void viber_add_connection(struct ndpi_detection_module_struct *ndpi_struc
NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_viber(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_viber(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/vmware.c b/src/lib/protocols/vmware.c
index 7f69bd50c..e6602197f 100644
--- a/src/lib/protocols/vmware.c
+++ b/src/lib/protocols/vmware.c
@@ -24,7 +24,7 @@
#include "ndpi_api.h"
-void ndpi_search_vmware(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_vmware(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/vnc.c b/src/lib/protocols/vnc.c
index 6a30f3f46..b3d327215 100644
--- a/src/lib/protocols/vnc.c
+++ b/src/lib/protocols/vnc.c
@@ -26,7 +26,7 @@
#include "ndpi_api.h"
-void ndpi_search_vnc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_vnc_tcp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/vxlan.c b/src/lib/protocols/vxlan.c
index 9f4bca85d..94e5c8873 100644
--- a/src/lib/protocols/vxlan.c
+++ b/src/lib/protocols/vxlan.c
@@ -57,7 +57,7 @@ static void ndpi_check_vxlan(struct ndpi_detection_module_struct *ndpi_struct, s
return;
}
-void ndpi_search_vxlan(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_vxlan(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
NDPI_LOG_DBG(ndpi_struct, "search vxlan\n");
diff --git a/src/lib/protocols/warcraft3.c b/src/lib/protocols/warcraft3.c
index 8e0bca51f..98888dbad 100644
--- a/src/lib/protocols/warcraft3.c
+++ b/src/lib/protocols/warcraft3.c
@@ -34,8 +34,8 @@ static void ndpi_int_warcraft3_add_connection(struct ndpi_detection_module_struc
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_WARCRAFT3, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_warcraft3(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_warcraft3(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/websocket.c b/src/lib/protocols/websocket.c
index bfa754536..93e1fc7b8 100644
--- a/src/lib/protocols/websocket.c
+++ b/src/lib/protocols/websocket.c
@@ -93,7 +93,7 @@ static void ndpi_check_websocket(struct ndpi_detection_module_struct *ndpi_struc
}
}
-void ndpi_search_websocket(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_websocket(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
// Break after 6 packets.
if (flow->packet_counter > 10)
diff --git a/src/lib/protocols/whatsapp.c b/src/lib/protocols/whatsapp.c
index 3a9787028..0803ea8a0 100644
--- a/src/lib/protocols/whatsapp.c
+++ b/src/lib/protocols/whatsapp.c
@@ -84,8 +84,8 @@ static int ndpi_int_match_whatsapp_sequence(struct ndpi_detection_module_struct
return 1;
}
-void ndpi_search_whatsapp(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_whatsapp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search WhatsApp\n");
diff --git a/src/lib/protocols/whoisdas.c b/src/lib/protocols/whoisdas.c
index 8d34c8af0..942a73cc6 100644
--- a/src/lib/protocols/whoisdas.c
+++ b/src/lib/protocols/whoisdas.c
@@ -25,7 +25,7 @@
#include "ndpi_api.h"
-void ndpi_search_whois_das(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_whois_das(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/wireguard.c b/src/lib/protocols/wireguard.c
index 62bb6aae7..7788b0c12 100644
--- a/src/lib/protocols/wireguard.c
+++ b/src/lib/protocols/wireguard.c
@@ -39,8 +39,8 @@ enum wg_message_type {
WG_TYPE_TRANSPORT_DATA = 4
};
-void ndpi_search_wireguard(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_wireguard(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
const u_int8_t *payload = packet->payload;
diff --git a/src/lib/protocols/world_of_kung_fu.c b/src/lib/protocols/world_of_kung_fu.c
index 8b6d0b2c1..999bcae7c 100644
--- a/src/lib/protocols/world_of_kung_fu.c
+++ b/src/lib/protocols/world_of_kung_fu.c
@@ -33,7 +33,7 @@ static void ndpi_int_world_of_kung_fu_add_connection(struct ndpi_detection_modul
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_WORLD_OF_KUNG_FU, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_world_of_kung_fu(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_world_of_kung_fu(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/world_of_warcraft.c b/src/lib/protocols/world_of_warcraft.c
index 89316b872..f41ef9c67 100644
--- a/src/lib/protocols/world_of_warcraft.c
+++ b/src/lib/protocols/world_of_warcraft.c
@@ -51,8 +51,8 @@ u_int8_t ndpi_int_is_wow_port(const u_int16_t port)
return 0;
}
-void ndpi_search_worldofwarcraft(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_worldofwarcraft(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/wsd.c b/src/lib/protocols/wsd.c
index d0326762e..1cf623abf 100644
--- a/src/lib/protocols/wsd.c
+++ b/src/lib/protocols/wsd.c
@@ -28,8 +28,8 @@
#define WSD_PORT 3702
-void ndpi_search_wsd(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_wsd(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
NDPI_LOG_DBG(ndpi_struct, "search wsd\n");
diff --git a/src/lib/protocols/xbox.c b/src/lib/protocols/xbox.c
index 57931f2d8..f47018a06 100644
--- a/src/lib/protocols/xbox.c
+++ b/src/lib/protocols/xbox.c
@@ -33,7 +33,7 @@ static void ndpi_int_xbox_add_connection(struct ndpi_detection_module_struct
}
-void ndpi_search_xbox(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_xbox(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/xdmcp.c b/src/lib/protocols/xdmcp.c
index 3e9423046..1840b95d7 100644
--- a/src/lib/protocols/xdmcp.c
+++ b/src/lib/protocols/xdmcp.c
@@ -35,8 +35,8 @@ static void ndpi_int_xdmcp_add_connection(struct ndpi_detection_module_struct
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_XDMCP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
}
-void ndpi_search_xdmcp(struct ndpi_detection_module_struct
- *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_xdmcp(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/zabbix.c b/src/lib/protocols/zabbix.c
index 718b06e37..29f5320be 100644
--- a/src/lib/protocols/zabbix.c
+++ b/src/lib/protocols/zabbix.c
@@ -34,8 +34,8 @@ static void ndpi_int_zabbix_add_connection(struct ndpi_detection_module_struct *
/* *************************************************** */
-void ndpi_search_zabbix(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
+static void ndpi_search_zabbix(struct ndpi_detection_module_struct *ndpi_struct,
+ struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
u_int8_t tomatch[] = { 'Z', 'B', 'X', 'D', 0x1 };
diff --git a/src/lib/protocols/zattoo.c b/src/lib/protocols/zattoo.c
index 6f0b77c3d..04e5431a5 100644
--- a/src/lib/protocols/zattoo.c
+++ b/src/lib/protocols/zattoo.c
@@ -49,7 +49,7 @@ u_int8_t ndpi_int_zattoo_user_agent_set(struct ndpi_detection_module_struct *ndp
#define ZATTOO_DETECTED \
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_ZATTOO, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI /* TODO */)
-void ndpi_search_zattoo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
+static void ndpi_search_zattoo(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &ndpi_struct->packet;
diff --git a/src/lib/protocols/zeromq.c b/src/lib/protocols/zeromq.c
index 9d8e105fc..8667d1994 100644
--- a/src/lib/protocols/zeromq.c
+++ b/src/lib/protocols/zeromq.c
@@ -81,7 +81,7 @@ static void ndpi_check_zmq(struct ndpi_detection_module_struct *ndpi_struct, str
}
}
-void ndpi_search_zmq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
+static void ndpi_search_zmq(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
NDPI_LOG_DBG(ndpi_struct, "search ZMQ\n");
/* skip marked packets */