Go to the source code of this file.
|
| #define | RAWREASSEMBLY_START(isn) |
| |
| #define | RAWREASSEMBLY_END |
| |
| #define | RAWREASSEMBLY_STEP(seq, seg, seglen, buf, buflen) |
| |
| #define | RAWREASSEMBLY_STEP_WITH_PROGRESS(seq, seg, seglen, buf, buflen, lastack, progress) |
| |
◆ RAWREASSEMBLY_END
| #define RAWREASSEMBLY_END |
◆ RAWREASSEMBLY_START
| #define RAWREASSEMBLY_START |
( |
|
isn | ) |
|
Value:
memset(&
tv, 0,
sizeof(
tv)); \
StreamTcpUTInitInline(); \
stream_config.reassembly_toserver_chunk_size = 9; \
stream_config.reassembly_toclient_chunk_size = 9; \
StreamTcpUTSetupSession(&
ssn); \
StreamTcpUTSetupStream(&
ssn.
server, (isn)); \
StreamTcpUTSetupStream(&
ssn.
client, (isn)); \
ssn.server.last_ack = (isn) + 1; \
ssn.client.last_ack = (isn) + 1; \
\
Definition at line 67 of file stream-tcp-reassemble.c.
◆ RAWREASSEMBLY_STEP
| #define RAWREASSEMBLY_STEP |
( |
|
seq, |
|
|
|
seg, |
|
|
|
seglen, |
|
|
|
buf, |
|
|
|
buflen |
|
) |
| |
Value:
{ \
SCLogNotice(
"SEQ %u block of %u", (
seq), (seglen)); \
TCPHdr tcphdr; \
memset(&tcphdr, 0, sizeof(tcphdr)); \
UTHSetTCPHdr(
p, &tcphdr); \
tcphdr.th_seq = htonl((
seq)); \
tcphdr.th_ack = htonl(10); \
p->payload_len = (seglen);
\
&
tv, ra_ctx, &
ssn, stream, (
seq), (uint8_t *)(seg), (seglen)) != 0); \
FAIL_IF(!(TestReassembleRawValidate(&
ssn,
p, (uint8_t *)(buf), (buflen)))); \
} \
Definition at line 92 of file stream-tcp-reassemble.c.
◆ RAWREASSEMBLY_STEP_WITH_PROGRESS
| #define RAWREASSEMBLY_STEP_WITH_PROGRESS |
( |
|
seq, |
|
|
|
seg, |
|
|
|
seglen, |
|
|
|
buf, |
|
|
|
buflen, |
|
|
|
lastack, |
|
|
|
progress |
|
) |
| |
Value: stream->last_ack = (lastack); \
RAWREASSEMBLY_STEP((
seq),(seg),(seglen),(buf),(buflen)); \
Definition at line 112 of file stream-tcp-reassemble.c.