Add Apache Thrift protocol dissector. (#2007)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-06-22 13:07:32 +02:00
committed by GitHub
parent 8dbd591053
commit 1678888284
183 changed files with 498 additions and 175 deletions
+1
View File
@@ -373,6 +373,7 @@ typedef enum {
NDPI_PROTOCOL_NVIDIA = 342,
NDPI_PROTOCOL_BITCOIN = 343,
NDPI_PROTOCOL_PROTONVPN = 344,
NDPI_PROTOCOL_APACHE_THRIFT = 345,
#ifdef CUSTOM_NDPI_PROTOCOLS
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
+1
View File
@@ -243,6 +243,7 @@ void init_bacnet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_i
void init_oicq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_epicgames_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_bitcoin_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
void init_apache_thrift_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id);
/* ndpi_main.c */
extern u_int32_t ndpi_ip_port_hash_funct(u_int32_t ip, u_int16_t port);
+5
View File
@@ -1596,6 +1596,11 @@ struct ndpi_flow_struct {
u_int16_t external_port;
ndpi_ip_addr_t external_address;
} natpmp;
struct {
u_int8_t message_type;
char method[64];
} thrift;
} protos;
/*** ALL protocol specific 64 bit variables here ***/