LINE_CALL: add detection of LINE voip calls (#1761)
These flows are classifed as `LINE_CALL`; another option was `RTP/LINE_CALL`. No sure about the best solution... Extend LINE domains list. Remove RTP dead code.
This commit is contained in:
@@ -344,6 +344,7 @@ typedef enum {
|
||||
NDPI_PROTOCOL_SYNCTHING = 313,
|
||||
NDPI_PROTOCOL_CRYNET = 314,
|
||||
NDPI_PROTOCOL_LINE = 315,
|
||||
NDPI_PROTOCOL_LINE_CALL = 316,
|
||||
|
||||
#ifdef CUSTOM_NDPI_PROTOCOLS
|
||||
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
|
||||
|
||||
@@ -243,6 +243,7 @@ void init_fastcgi_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_
|
||||
void init_natpmp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_syncthing_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_crynet_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_line_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
|
||||
/* ndpi_main.c */
|
||||
extern u_int32_t ndpi_ip_port_hash_funct(u_int32_t ip, u_int16_t port);
|
||||
|
||||
@@ -824,6 +824,10 @@ struct ndpi_flow_udp_struct {
|
||||
|
||||
/* NDPI_PROTOCOL_IMO */
|
||||
u_int8_t imo_last_one_byte_pkt, imo_last_byte;
|
||||
|
||||
/* NDPI_PROTOCOL_LINE_CALL */
|
||||
u_int8_t line_pkts[2];
|
||||
u_int8_t line_base_cnt[2];
|
||||
};
|
||||
|
||||
/* ************************************************** */
|
||||
|
||||
Reference in New Issue
Block a user