suricata
|
Go to the source code of this file.
Functions | |
int | FlowForceReassemblyForFlow (Flow *f, int server, int client) |
int | FlowForceReassemblyNeedReassembly (Flow *f, int *server, int *client) |
Check if a flow needs forced reassembly, or any other processing. More... | |
void | FlowForceReassembly (void) |
Force reassembly for all the flows that have unprocessed segments. More... | |
void | FlowForceReassemblySetup (int detect_disabled) |
Definition in file flow-timeout.h.
void FlowForceReassembly | ( | void | ) |
Force reassembly for all the flows that have unprocessed segments.
Definition at line 463 of file flow-timeout.c.
Referenced by PostRunDeinit().
int FlowForceReassemblyForFlow | ( | Flow * | f, |
int | server, | ||
int | client | ||
) |
< null terminated array of packets
Definition at line 334 of file flow-timeout.c.
References BUG_ON, FBLOCK_LOCK, FBLOCK_UNLOCK, Flow_::flags, Packet_::flow, flow_config, flow_hash, FLOW_TIMEOUT_REASSEMBLY_DONE, FlowForceReassemblyForFlow(), FlowForceReassemblyNeedReassembly(), FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, FlowCnf_::hash_size, Flow_::hnext, PacketPoolWaitForN(), PKT_SET_SRC, PKT_SRC_FFR, Flow_::protoctx, STREAM_HAS_UNPROCESSED_SEGMENTS_NEED_ONLY_DETECTION, Flow_::thread_id, TmqhOutputPacketpool(), TmThreadsInjectPacketsById(), and unlikely.
Referenced by FlowDisableFlowManagerThread(), and FlowForceReassemblyForFlow().
int FlowForceReassemblyNeedReassembly | ( | Flow * | f, |
int * | server, | ||
int * | client | ||
) |
Check if a flow needs forced reassembly, or any other processing.
f | LOCKED flow |
server | ptr to int that should be set to 1 or 2 if we return 1 |
client | ptr to int that should be set to 1 or 2 if we return 1 |
0 | no |
1 | yes |
Definition at line 278 of file flow-timeout.c.
References Flow_::alparser, Flow_::alproto, ALPROTO_UNKNOWN, Flow_::alstate, AppLayerParserGetTransactionActive(), AppLayerParserGetTxCnt(), AppLayerParserProtocolSupportsTxs(), Flow_::proto, Flow_::protoctx, SCReturnInt, TcpSession_::state, STREAM_HAS_UNPROCESSED_SEGMENTS_NEED_ONLY_DETECTION, STREAM_HAS_UNPROCESSED_SEGMENTS_NONE, STREAM_TOCLIENT, STREAM_TOSERVER, StreamNeedsReassembly(), TCP_CLOSED, and TCP_ESTABLISHED.
Referenced by FlowDisableFlowManagerThread(), and FlowForceReassemblyForFlow().
void FlowForceReassemblySetup | ( | int | detect_disabled | ) |