diff options
-rw-r--r-- | example/ndpi_util.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 |