diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 4 | ||||
-rw-r--r-- | example/reader_util.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 4144a81ea..8ea13b6ab 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 d230c9337..6ce02f001 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); |