Add Service Location Protocol dissector. (#2036)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -375,6 +375,7 @@ typedef enum {
|
||||
NDPI_PROTOCOL_PROTONVPN = 344,
|
||||
NDPI_PROTOCOL_APACHE_THRIFT = 345,
|
||||
NDPI_PROTOCOL_ROBLOX = 346,
|
||||
NDPI_PROTOCOL_SERVICE_LOCATION = 347,
|
||||
|
||||
#ifdef CUSTOM_NDPI_PROTOCOLS
|
||||
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
|
||||
|
||||
@@ -243,6 +243,7 @@ void init_oicq_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int
|
||||
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);
|
||||
void init_slp_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);
|
||||
|
||||
@@ -1608,6 +1608,11 @@ struct ndpi_flow_struct {
|
||||
u_int8_t message_type;
|
||||
char method[64];
|
||||
} thrift;
|
||||
|
||||
struct {
|
||||
u_int8_t url_count;
|
||||
char url[4][48];
|
||||
} slp;
|
||||
} protos;
|
||||
|
||||
/*** ALL protocol specific 64 bit variables here ***/
|
||||
|
||||
Reference in New Issue
Block a user