aboutsummaryrefslogtreecommitdiff
path: root/python/ndpi.py
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2021-09-13 16:19:09 +0000
committerGitHub <noreply@github.com>2021-09-13 18:19:09 +0200
commit22241a1d36391ef4a7825aec0b1fb215bb2f095d (patch)
treed3eb27b3b1bf49a7a128112350ad238411a51b28 /python/ndpi.py
parent951bcb0c396b56f09b5c23e7cde04b20bf769231 (diff)
Removing unused fields from the id_struct structure. (#1293)
Reduced by 40 bytes.
Diffstat (limited to 'python/ndpi.py')
-rw-r--r--python/ndpi.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/python/ndpi.py b/python/ndpi.py
index fb5c8af2c..7a57e1a39 100644
--- a/python/ndpi.py
+++ b/python/ndpi.py
@@ -442,9 +442,6 @@ struct ndpi_id_struct {
/* NDPI_PROTOCOL_RTSP */
ndpi_ip_addr_t rtsp_ip_address;
- /* NDPI_PROTOCOL_YAHOO */
- uint32_t yahoo_video_lan_timer;
-
/* NDPI_PROTOCOL_IRC_MAXPORT % 2 must be 0 */
/* NDPI_PROTOCOL_IRC */
#define NDPI_PROTOCOL_IRC_MAXPORT 8
@@ -478,20 +475,12 @@ struct ndpi_id_struct {
uint16_t detected_directconnect_udp_port;
uint16_t detected_directconnect_ssl_port;
- /* NDPI_PROTOCOL_BITTORRENT */
-#define NDPI_BT_PORTS 8
- uint16_t bt_port_t[NDPI_BT_PORTS];
- uint16_t bt_port_u[NDPI_BT_PORTS];
-
/* NDPI_PROTOCOL_UNENCRYPTED_JABBER */
#define JABBER_MAX_STUN_PORTS 6
uint16_t jabber_voice_stun_port[JABBER_MAX_STUN_PORTS];
uint16_t jabber_file_transfer_port[2];
/* NDPI_PROTOCOL_GNUTELLA */
- uint16_t detected_gnutella_port;
-
- /* NDPI_PROTOCOL_GNUTELLA */
uint16_t detected_gnutella_udp_port1;
uint16_t detected_gnutella_udp_port2;
@@ -504,16 +493,7 @@ struct ndpi_id_struct {
/* NDPI_PROTOCOL_UNENCRYPTED_JABBER */
uint8_t jabber_voice_stun_used_ports;
- /* NDPI_PROTOCOL_SIP */
- /* NDPI_PROTOCOL_YAHOO */
- uint32_t yahoo_video_lan_dir:1;
-
- /* NDPI_PROTOCOL_YAHOO */
- uint32_t yahoo_conf_logged_in:1;
- uint32_t yahoo_voice_conf_logged_in:1;
-
- /* NDPI_PROTOCOL_RTSP */
- uint32_t rtsp_ts_set:1;
+ uint8_t rtsp_ts_set:1;
};
struct ndpi_flow_tcp_struct {