suricata
flow-timeout.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "conf.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "runmodes.h"
#include "util-random.h"
#include "util-time.h"
#include "flow.h"
#include "flow-queue.h"
#include "flow-hash.h"
#include "flow-util.h"
#include "flow-var.h"
#include "flow-private.h"
#include "flow-manager.h"
#include "flow-timeout.h"
#include "pkt-var.h"
#include "host.h"
#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-byte.h"
#include "util-debug.h"
#include "util-privs.h"
#include "detect.h"
#include "detect-engine-state.h"
#include "stream.h"
#include "app-layer-parser.h"
#include "app-layer.h"
#include "util-profiling.h"
Include dependency graph for flow-timeout.c:

Go to the source code of this file.

Functions

int FlowForceReassemblyNeedReassembly (Flow *f, int *server, int *client)
 Check if a flow needs forced reassembly, or any other processing. More...
 
int FlowForceReassemblyForFlow (Flow *f, int server, int client)
 
void FlowForceReassembly (void)
 Force reassembly for all the flows that have unprocessed segments. More...
 

Detailed Description

Function Documentation

void FlowForceReassembly ( void  )

Force reassembly for all the flows that have unprocessed segments.

Definition at line 468 of file flow-timeout.c.

Referenced by PostRunDeinit().

Here is the caller graph for this function:

int FlowForceReassemblyNeedReassembly ( Flow f,
int *  server,
int *  client 
)

Check if a flow needs forced reassembly, or any other processing.

Parameters
fLOCKED flow
serverptr to int that should be set to 1 or 2 if we return 1
clientptr to int that should be set to 1 or 2 if we return 1
Return values
0no
1yes

Definition at line 285 of file flow-timeout.c.

References Flow_::alparser, Flow_::alproto, ALPROTO_UNKNOWN, Flow_::alstate, AppLayerParserGetTransactionActive(), AppLayerParserGetTxCnt(), 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().

Here is the call graph for this function:

Here is the caller graph for this function: