00001 #ifndef _FLOW_CALLBACK_H 00002 #define _FLOW_CALLBACK_H 00003 00004 #include "flow.h" 00005 #include "flow_cache.h" 00006 00007 typedef struct _FLOWCALLBACKDATA 00008 { 00009 char use_once; 00010 /* do the matching on the initiator side of a conversation */ 00011 u_int32_t resp_address; 00012 u_int32_t resp_port; 00013 /* do the matching on the reponder side of a conversation */ 00014 00015 u_int32_t init_address; 00016 u_int32_t init_port; 00017 00018 time_t expiration; 00019 unsigned char postition; /* where in the flow back module we should be called */ 00020 unsigned char order; /* when sorting out the callbacks, 0,1,2... undefined between the same orders */ 00021 // int (*flow_callback)(int position, FLOW *flow, int direction, Packet *p); 00022 } FLOWCALLBACKDATA; 00023 00024 int flow_callbacks(FLOW_POSITION position, FLOW *flowp, int direction, FLOWPACKET *p); 00025 00026 #endif /* _FLOW_CALLBACK_H */