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); \
#define PASS
Pass the test.
void StreamTcpUTClearSession(TcpSession *ssn)

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

◆ OVERLAP_START

#define OVERLAP_START (   isn,
  policy 
)
Value:
TcpReassemblyThreadCtx *ra_ctx = NULL; \
TcpSession ssn; \
memset(&tv, 0, sizeof(tv)); \
\
StreamTcpUTInit(&ra_ctx); \
\
StreamTcpUTSetupSession(&ssn); \
StreamTcpUTSetupStream(&ssn.server, (isn)); \
StreamTcpUTSetupStream(&ssn.client, (isn)); \
\
TcpStream *stream = &ssn.client; \
stream->os_policy = (policy);
ThreadVars * tv
Per thread variable structure.
Definition threadvars.h:58

Definition at line 40 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))));
#define VALIDATE(e)
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 60 of file stream-tcp-list.c.

Function Documentation

◆ StreamTcpListRegisterTests()

void StreamTcpListRegisterTests ( void  )

Definition at line 710 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: