From 183175fc6b4c9e610fb22dfd69946cc7063b6a63 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 4 Nov 2024 22:02:13 +0100 Subject: [PATCH] Exported is_ndpi_proto definition --- example/ndpiReader.c | 4 +++- example/reader_util.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 4144a81eac4..8ea13b6ab6a 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -292,7 +292,9 @@ static int dpdk_port_id = 0, dpdk_run_capture = 1; void test_lib(); /* Forward */ extern void ndpi_report_payload_stats(FILE *out); -extern int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic); +extern int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, + int inverted_logic); +extern u_int8_t is_ndpi_proto(struct ndpi_flow_info *flow, u_int16_t id); /* ********************************** */ diff --git a/example/reader_util.c b/example/reader_util.c index d230c93375d..6ce02f00165 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1072,7 +1072,7 @@ static struct ndpi_flow_info *get_ndpi_flow_info6(struct ndpi_workflow * workflo /* ****************************************************** */ -static u_int8_t is_ndpi_proto(struct ndpi_flow_info *flow, u_int16_t id) { +u_int8_t is_ndpi_proto(struct ndpi_flow_info *flow, u_int16_t id) { if((flow->detected_protocol.proto.master_protocol == id) || (flow->detected_protocol.proto.app_protocol == id)) return(1);