Skip to content

Commit

Permalink
Exported is_ndpi_proto definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 4, 2024
1 parent 4e18a56 commit 183175f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/* ********************************** */

Expand Down
2 changes: 1 addition & 1 deletion example/reader_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 183175f

Please sign in to comment.