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

#define OVERLAP_END
Value:
#define PASS
Pass the test.
void StreamTcpUTDeinit(TcpReassemblyThreadCtx *ra_ctx)
void StreamTcpUTClearSession(TcpSession *ssn)

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

#define OVERLAP_START (   isn,
  policy 
)
Value:
TcpReassemblyThreadCtx *ra_ctx = NULL; \
memset(&tv, 0, sizeof(tv)); \
StreamTcpUTSetupStream(&ssn.server, (isn)); \
StreamTcpUTSetupStream(&ssn.client, (isn)); \
\
TcpStream *stream = &ssn.client; \
stream->os_policy = (policy);
void StreamTcpUTInit(TcpReassemblyThreadCtx **ra_ctx)
struct ThreadVars_ ThreadVars
Per thread variable structure.
struct TcpStream_ TcpStream
void StreamTcpUTSetupStream(TcpStream *s, uint32_t isn)
struct TcpSession_ TcpSession
void StreamTcpUTSetupSession(TcpSession *ssn)

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

#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))));
#define FAIL_IF(expr)
Fail a test if expression evaluates to false.
Definition: util-unittest.h:71
int StreamTcpUTAddPayload(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx, TcpSession *ssn, TcpStream *stream, uint32_t seq, uint8_t *payload, uint16_t len)
wrapper for StreamTcpReassembleHandleSegmentHandleData

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

Function Documentation

void StreamTcpListRegisterTests ( void  )

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

References UtRegisterTest().

Referenced by StreamTcpReassembleRegisterTests().

Here is the call graph for this function:

Here is the caller graph for this function: