added prototype of function packet_processing
This commit is contained in:
+15
-1
@@ -157,7 +157,21 @@ static inline void ndpi_workflow_set_flow_giveup_callback(struct ndpi_workflow *
|
|||||||
workflow->__flow_giveup_udata = udata;
|
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);
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user