diff options
author | Campus <campus@ntop.org> | 2016-12-02 02:25:43 +0100 |
---|---|---|
committer | Campus <campus@ntop.org> | 2016-12-02 02:25:43 +0100 |
commit | 6f31ae722ee41d6deee3079c71b5c018f900fc57 (patch) | |
tree | fed9e98a4c54494291e368eb9c6139b91639cc06 /example/ndpi_util.h | |
parent | cc5167c09ab78e0575126c92cc5071d83e93f65e (diff) |
added prototype of function packet_processing
Diffstat (limited to 'example/ndpi_util.h')
-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 |