From 6f31ae722ee41d6deee3079c71b5c018f900fc57 Mon Sep 17 00:00:00 2001 From: Campus Date: Fri, 2 Dec 2016 02:25:43 +0100 Subject: added prototype of function packet_processing --- example/ndpi_util.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'example/ndpi_util.h') diff --git a/example/ndpi_util.h b/example/ndpi_util.h index 8cd6fdc7a..c25ff0199 100644 --- a/example/ndpi_util.h +++ b/example/ndpi_util.h @@ -157,7 +157,21 @@ static inline void ndpi_workflow_set_flow_giveup_callback(struct ndpi_workflow * workflow->__flow_giveup_udata = udata; } -// compare two nodes in workflow +// ompare two nodes in workflow int ndpi_workflow_node_cmp(const void *a, const void *b); + +/** + Function to process the packet: + determine the flow of a packet and try to decode it + @return: 0 if success; else != 0 +*/ +static unsigned int packet_processing(struct ndpi_workflow * workflow, + const u_int64_t time, + u_int16_t vlan_id, + const struct ndpi_iphdr *iph, + struct ndpi_ipv6hdr *iph6, + u_int16_t ip_offset, + u_int16_t ipsize, u_int16_t rawsize); + #endif -- cgit v1.2.3