Improved BitTorrent classification
This commit is contained in:
@@ -60,6 +60,9 @@ void init_ayiya_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_in
|
||||
void init_amqp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_bgp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_bittorrent_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
int ndpi_search_into_bittorrent_cache(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow,
|
||||
u_int32_t saddr, u_int16_t sport, u_int32_t daddr, u_int16_t dport);
|
||||
u_int32_t ndpi_bittorrent_hash_funct(u_int32_t ip, u_int16_t port);
|
||||
void init_lisp_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_teredo_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
void init_ciscovpn_dissector(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t *id, NDPI_PROTOCOL_BITMASK *detection_bitmask);
|
||||
|
||||
@@ -1164,10 +1164,14 @@ struct ndpi_flow_struct {
|
||||
u_int32_t next_tcp_seq_nr[2];
|
||||
|
||||
/* Flow addresses (used mainly for LRU lookups in ndpi_detection_giveup())
|
||||
* TODO: ipv6. Note that LRU is ipv4 only, for the time being */
|
||||
u_int32_t saddr;
|
||||
u_int32_t daddr;
|
||||
and ports. All in *network* byte order
|
||||
|
||||
TODO
|
||||
- IPv6. Note that LRU is ipv4 only, for the time being
|
||||
*/
|
||||
u_int32_t saddr, daddr;
|
||||
u_int16_t sport, dport;
|
||||
|
||||
// -----------------------------------------
|
||||
|
||||
u_int8_t max_extra_packets_to_check;
|
||||
|
||||
Reference in New Issue
Block a user