24 #ifndef SURICATA_FLOW_PRIVATE_H
25 #define SURICATA_FLOW_PRIVATE_H
37 #define FLOW_EMERGENCY 0x01
40 #define FLOW_DEFAULT_NEW_TIMEOUT 30
41 #define FLOW_DEFAULT_EST_TIMEOUT 300
42 #define FLOW_DEFAULT_BYPASSED_TIMEOUT 100
43 #define FLOW_IPPROTO_TCP_NEW_TIMEOUT 30
44 #define FLOW_IPPROTO_TCP_EST_TIMEOUT 300
45 #define FLOW_IPPROTO_TCP_CLOSED_TIMEOUT 10
46 #define FLOW_IPPROTO_TCP_BYPASSED_TIMEOUT 100
47 #define FLOW_IPPROTO_UDP_NEW_TIMEOUT 30
48 #define FLOW_IPPROTO_UDP_EST_TIMEOUT 300
49 #define FLOW_IPPROTO_UDP_BYPASSED_TIMEOUT 100
50 #define FLOW_IPPROTO_ICMP_NEW_TIMEOUT 30
51 #define FLOW_IPPROTO_ICMP_EST_TIMEOUT 300
52 #define FLOW_IPPROTO_ICMP_BYPASSED_TIMEOUT 100
54 #define FLOW_DEFAULT_EMERG_NEW_TIMEOUT 10
55 #define FLOW_DEFAULT_EMERG_EST_TIMEOUT 100
56 #define FLOW_DEFAULT_EMERG_BYPASSED_TIMEOUT 50
57 #define FLOW_IPPROTO_TCP_EMERG_NEW_TIMEOUT 10
58 #define FLOW_IPPROTO_TCP_EMERG_EST_TIMEOUT 100
59 #define FLOW_IPPROTO_TCP_EMERG_CLOSED_TIMEOUT 5
60 #define FLOW_IPPROTO_UDP_EMERG_NEW_TIMEOUT 10
61 #define FLOW_IPPROTO_UDP_EMERG_EST_TIMEOUT 100
62 #define FLOW_IPPROTO_ICMP_EMERG_NEW_TIMEOUT 10
63 #define FLOW_IPPROTO_ICMP_EMERG_EST_TIMEOUT 100
65 #define FLOW_BYPASSED_TIMEOUT 100
77 #define FLOW_PROTO_APPLAYER_MAX FLOW_PROTO_UDP + 1
104 static inline uint32_t FlowGetFlowTimeoutDirect(
106 const enum FlowState state,
const uint8_t protomap)
120 #ifdef CAPTURE_OFFLOAD
121 case FLOW_STATE_CAPTURE_BYPASSED:
140 static inline uint32_t FlowGetFlowTimeout(
const Flow *f,
enum FlowState state)
143 return FlowGetFlowTimeoutDirect(flow_timeouts, state, f->
protomap);
155 static inline uint32_t FlowGetTimeoutPolicy(
const Flow *f)
170 #ifdef CAPTURE_OFFLOAD
171 case FLOW_STATE_CAPTURE_BYPASSED: