diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h | 4 | ||||
-rw-r--r-- | src/include/ndpi_protocol_ids.h | 7 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 12 |
3 files changed, 13 insertions, 10 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 9b75d7bd4..bdb351df4 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -754,7 +754,9 @@ extern "C" { int ndpi_load_hostname_category(struct ndpi_detection_module_struct *ndpi_struct, char *name, ndpi_protocol_category_t category); int ndpi_enable_loaded_categories(struct ndpi_detection_module_struct *ndpi_struct); - + void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow, + ndpi_protocol *ret); /** * Add a string to match to an automata * diff --git a/src/include/ndpi_protocol_ids.h b/src/include/ndpi_protocol_ids.h index 670b57468..d1f29ea7f 100644 --- a/src/include/ndpi_protocol_ids.h +++ b/src/include/ndpi_protocol_ids.h @@ -75,7 +75,7 @@ #define NDPI_PROTOCOL_GNUTELLA 35 #define NDPI_PROTOCOL_EDONKEY 36 /* Tomasz Bujlow <tomasz@skatnet.dk> */ #define NDPI_PROTOCOL_BITTORRENT 37 -#define NDPI_PROTOCOL_EPP 38 +#define NDPI_PROTOCOL_SKYPE_CALL_OUT 38 #define NDPI_CONTENT_AVI 39 #define NDPI_CONTENT_FLASH 40 #define NDPI_CONTENT_OGG 41 @@ -86,10 +86,7 @@ #define NDPI_CONTENT_MMS 46 #define NDPI_PROTOCOL_XBOX 47 #define NDPI_PROTOCOL_QQ 48 - -/* Free to use */ -#define NDPI_PROTOCOL_FREE_A 49 - +#define NDPI_PROTOCOL_SKYPE_CALL_IN 49 #define NDPI_PROTOCOL_RTSP 50 #define NDPI_PROTOCOL_MAIL_IMAPS 51 #define NDPI_PROTOCOL_ICECAST 52 diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index af444e410..869a198f7 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -902,6 +902,7 @@ struct ndpi_detection_module_struct { ndpi_automa hostnames, hostnames_shadow; #endif void *ipAddresses, *ipAddresses_shadow; /* Patricia */ + u_int8_t categories_loaded; } custom_categories; /* IP-based protocol detection */ @@ -1006,8 +1007,8 @@ struct ndpi_flow_struct { struct { ndpi_http_method method; char *url, *content_type; - u_int8_t num_request_headers, num_response_headers; - u_int8_t request_version; /* 0=1.0 and 1=1.1. Create an enum for this? */ + u_int8_t num_request_headers, num_response_headers; + u_int8_t request_version; /* 0=1.0 and 1=1.1. Create an enum for this? */ u_char response_status_code[5]; /* 200, 404, etc. */ } http; @@ -1055,14 +1056,17 @@ struct ndpi_flow_struct { char fingerprint[48]; char class_ident[48]; } dhcp; + + struct { + u_int8_t num_udp_pkts, num_processed_pkts, num_binding_requests, is_skype; + } stun; } protos; /*** ALL protocol specific 64 bit variables here ***/ /* protocols which have marked a connection as this connection cannot be protocol XXX, multiple u_int64_t */ NDPI_PROTOCOL_BITMASK excluded_protocol_bitmask; - - u_int8_t num_stun_udp_pkts; + #ifdef NDPI_PROTOCOL_REDIS u_int8_t redis_s2d_first_char, redis_d2s_first_char; |