suricata
stream-tcp-list.c File Reference
Include dependency graph for stream-tcp-list.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OVERLAP_START(isn, policy)
 
#define OVERLAP_END
 
#define OVERLAP_STEP(rseq, seg, seglen, buf, buflen)
 

Functions

void StreamTcpListRegisterTests (void)
 

Macro Definition Documentation

◆ OVERLAP_END

#define OVERLAP_END
Value:
StreamTcpUTDeinit(ra_ctx); \
PASS

Definition at line 56 of file stream-tcp-list.c.

◆ OVERLAP_START

#define OVERLAP_START (   isn,
  policy 
)
Value:
TcpReassemblyThreadCtx *ra_ctx = NULL; \
TcpSession ssn; \
ThreadVars tv; \
memset(&tv, 0, sizeof(tv)); \
StreamTcpUTSetupStream(&ssn.server, (isn)); \
StreamTcpUTSetupStream(&ssn.client, (isn)); \
\
TcpStream *stream = &ssn.client; \
stream->os_policy = (policy);

Definition at line 41 of file stream-tcp-list.c.

◆ OVERLAP_STEP

#define OVERLAP_STEP (   rseq,
  seg,
  seglen,
  buf,
  buflen 
)
Value:
StreamTcpUTAddPayload(&tv, ra_ctx, &ssn, stream, stream->isn + (rseq), (uint8_t *)(seg), (seglen)); \
FAIL_IF(!(VALIDATE(stream, (uint8_t *)(buf), (buflen))));

Definition at line 61 of file stream-tcp-list.c.

Function Documentation

◆ StreamTcpListRegisterTests()

void StreamTcpListRegisterTests ( void  )

Definition at line 710 of file stream-tcp-list.c.

References UtRegisterTest().

Here is the call graph for this function:
StreamTcpUTAddPayload
int StreamTcpUTAddPayload(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx, TcpSession *ssn, TcpStream *stream, uint32_t seq, uint8_t *payload, uint16_t len)
wrapper for StreamTcpReassembleHandleSegmentHandleData
Definition: stream-tcp-util.c:97
StreamTcpUTInit
void StreamTcpUTInit(TcpReassemblyThreadCtx **ra_ctx)
Definition: stream-tcp-util.c:44
VALIDATE
#define VALIDATE(e)
StreamTcpUTClearSession
void StreamTcpUTClearSession(TcpSession *ssn)
Definition: stream-tcp-util.c:71
tv
ThreadVars * tv
Definition: fuzz_decodepcapfile.c:32
StreamTcpUTSetupSession
void StreamTcpUTSetupSession(TcpSession *ssn)
Definition: stream-tcp-util.c:62
TcpReassemblyThreadCtx_
Definition: stream-tcp-reassemble.h:61