aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorAlfredo Cardigliano <alfredo.cardigliano@gmail.com>2020-01-24 18:36:38 +0100
committerAlfredo Cardigliano <alfredo.cardigliano@gmail.com>2020-01-24 18:36:38 +0100
commite20c4acbde5f277bea70aba3e2be4f45ac382e38 (patch)
tree4d92932fedbf201d374ca868d1e14a3bdfd88c65 /src/lib/ndpi_main.c
parentcedbf3b636ebd318aa38aeb08a588fbf8a4eb096 (diff)
Implement ndpi_flowv6_flow_hash ndpi_flowv4_flow_hash. Add ndpi_base64_encode.
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 90c9a81a4..9c406d988 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6569,30 +6569,6 @@ void ndpi_lru_add_to_cache(struct ndpi_lru_cache *c, u_int32_t key, u_int16_t va
/* ******************************************************************** */
/*
- NOTE:
- - Leave fields empty/zero when information is missing (e.g. with ICMP ports are zero)
- - The hash_buf most be 30+1 bits or longer
- - Return code: 0 = OK, -1 otherwise
-*/
-
-int ndpi_flowv4_flow_hash(u_int8_t l4_proto, u_int32_t src_ip,
- u_int32_t dst_ip, u_int16_t src_port, u_int16_t dst_port,
- u_int8_t icmp_type, u_int8_t icmp_code,
- u_char *hash_buf, u_int8_t hash_buf_len) {
-
- return(0); /* OK */
-}
-
-int ndpi_flowv6_flow_hash(u_int8_t l4_proto, struct ndpi_in6_addr *src_ip, struct ndpi_in6_addr *dst_ip,
- u_int16_t src_port, u_int16_t dst_port, u_int8_t icmp_type, u_int8_t icmp_code,
- u_char *hash_buf, u_int8_t hash_buf_len) {
-
- return(0); /* OK */
-}
-
-/* ******************************************************************** */
-
-/*
This function tells if it's possible to further dissect a given flow
0 - All possible dissection has been completed
1 - Additional dissection is possible