aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-09-10 15:07:52 +0200
committerGitHub <noreply@github.com>2023-09-10 15:07:52 +0200
commit2a0052f25e9781928b62b28a7a032e690903cf48 (patch)
treee8c69ae3b076843a25087c69472d7b2f4b4987fd /example/reader_util.h
parent0aa1cf7245534557c5d291495f43831614e1ab12 (diff)
fuzz: add fuzzers to test reader_util code (#2080)
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index 9d63278a4..fad25ca83 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -93,6 +93,10 @@ extern int dpdk_port_deinit(int port);
#define SERIALIZATION_BUFSIZ (8192 * 2)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// inner hash table (ja3 -> security state)
typedef struct ndpi_ja3_info {
char * ja3;
@@ -408,6 +412,7 @@ void ndpi_flow_info_free_data(struct ndpi_flow_info *flow);
void ndpi_flow_info_freer(void *node);
const char* print_cipher_id(u_int32_t cipher);
double ndpi_flow_get_byte_count_entropy(const uint32_t byte_count[256], unsigned int num_bytes);
+int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic);
extern int nDPI_LogLevel;
@@ -425,4 +430,8 @@ extern int nDPI_LogLevel;
#define LINKTYPE_LINUX_SLL2 276
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif