From 977751efdbe61374bbe54f709b3fd6c1b971a9d6 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 14 Nov 2018 15:24:15 +0100 Subject: Added ndpi_flowv4_flow_hash and ndpi_flowv6_flow_hash skeletons for implementing https://github.com/corelight/community-id-spec --- src/include/ndpi_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index d1e9148b2..d010577a5 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -772,6 +772,14 @@ extern "C" { void * ndpi_calloc(unsigned long count, size_t size); void ndpi_free(void *ptr); u_int8_t ndpi_get_api_version(); + + /* https://github.com/corelight/community-id-spec */ + 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); + 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); + #ifdef __cplusplus } #endif -- cgit v1.2.3