suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "debug.h"
#include "detect.h"
#include "flow.h"
#include "flow-util.h"
#include "conf.h"
#include "conf-yaml-loader.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "util-pool.h"
#include "util-pool-thread.h"
#include "util-checksum.h"
#include "util-unittest.h"
#include "util-print.h"
#include "util-debug.h"
#include "util-device.h"
#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"
#include "stream-tcp-inline.h"
#include "stream-tcp-sack.h"
#include "stream-tcp-util.h"
#include "stream.h"
#include "pkt-var.h"
#include "host.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "app-layer-protos.h"
#include "app-layer-htp-mem.h"
#include "util-host-os-info.h"
#include "util-privs.h"
#include "util-profiling.h"
#include "util-misc.h"
#include "util-validate.h"
#include "util-runmodes.h"
#include "util-random.h"
#include "source-pcap-file.h"
#include "tests/stream-tcp.c"
Go to the source code of this file.
Macros | |
#define | STREAMTCP_DEFAULT_PREALLOC 2048 |
#define | STREAMTCP_DEFAULT_MEMCAP (64 * 1024 * 1024) /* 64mb */ |
#define | STREAMTCP_DEFAULT_REASSEMBLY_MEMCAP (256 * 1024 * 1024) /* 256mb */ |
#define | STREAMTCP_DEFAULT_TOSERVER_CHUNK_SIZE 2560 |
#define | STREAMTCP_DEFAULT_TOCLIENT_CHUNK_SIZE 2560 |
#define | STREAMTCP_DEFAULT_MAX_SYNACK_QUEUED 5 |
#define | StreamTcpUpdateLastAck(ssn, stream, ack) |
macro to update last_ack only if the new value is higher More... | |
#define | StreamTcpAsyncLastAckUpdate(ssn, stream) |
#define | StreamTcpUpdateNextSeq(ssn, stream, seq) |
#define | StreamTcpUpdateNextWin(ssn, stream, win) |
macro to update next_win only if the new value is higher More... | |
#define | PSEUDO_PKT_SET_IPV4HDR(nipv4h, ipv4h) |
#define | PSEUDO_PKT_SET_IPV6HDR(nipv6h, ipv6h) |
#define | PSEUDO_PKT_SET_TCPHDR(ntcph, tcph) |
Functions | |
void | StreamTcpReturnStreamSegments (TcpStream *) |
return all segments in this stream into the pool(s) More... | |
void | StreamTcpInitConfig (bool quiet) |
To initialize the stream global configuration data. More... | |
int | StreamTcpGetFlowState (void *) |
void | StreamTcpSetOSPolicy (TcpStream *stream, Packet *p) |
Function to set the OS policy for the given stream based on the destination of the received packet. More... | |
uint64_t | StreamTcpReassembleMemuseGlobalCounter (void) |
SC_ATOMIC_DECLARE (uint64_t, st_memuse) | |
void | StreamTcpInitMemuse (void) |
void | StreamTcpIncrMemuse (uint64_t size) |
void | StreamTcpDecrMemuse (uint64_t size) |
uint64_t | StreamTcpMemuseCounter (void) |
int | StreamTcpCheckMemcap (uint64_t size) |
Check if alloc'ing "size" would mean we're over memcap. More... | |
int | StreamTcpSetMemcap (uint64_t size) |
Update memcap value. More... | |
uint64_t | StreamTcpGetMemcap (void) |
Return memcap value. More... | |
void | StreamTcpStreamCleanup (TcpStream *stream) |
void | StreamTcpSessionCleanup (TcpSession *ssn) |
Session cleanup function. Does not free the ssn. More... | |
void | StreamTcpSessionClear (void *ssnptr) |
Function to return the stream back to the pool. It returns the segments in the stream to the segment pool. More... | |
void | StreamTcpSessionPktFree (Packet *p) |
Function to return the stream segments back to the pool. More... | |
int | StreamTcpInlineDropInvalid (void) |
See if stream engine is dropping invalid packet in inline mode. More... | |
void | StreamTcpFreeConfig (bool quiet) |
int | StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt, PacketQueueNoLock *pq) |
int | TcpSessionPacketSsnReuse (const Packet *p, const Flow *f, const void *tcp_ssn) |
TmEcode | StreamTcp (ThreadVars *tv, Packet *p, void *data, PacketQueueNoLock *pq) |
TmEcode | StreamTcpThreadInit (ThreadVars *tv, void *initdata, void **data) |
TmEcode | StreamTcpThreadDeinit (ThreadVars *tv, void *data) |
void | StreamTcpUpdateAppLayerProgress (TcpSession *ssn, char direction, const uint32_t progress) |
update reassembly progress More... | |
void | StreamTcpSetSessionNoReassemblyFlag (TcpSession *ssn, char direction) |
disable reassembly More... | |
void | StreamTcpSetDisableRawReassemblyFlag (TcpSession *ssn, char direction) |
Set the No reassembly flag for the given direction in given TCP session. More... | |
void | StreamTcpSetSessionBypassFlag (TcpSession *ssn) |
enable bypass More... | |
Packet * | StreamTcpPseudoSetup (Packet *parent, uint8_t *pkt, uint32_t len) |
Function to fetch a packet from the packet allocation queue for creation of the pseudo packet from the reassembled stream. More... | |
void | StreamTcpDetectLogFlush (ThreadVars *tv, StreamTcpThread *stt, Flow *f, Packet *p, PacketQueueNoLock *pq) |
create packets in both directions to flush out logging and detection before switching protocols. In IDS mode, create first in packet dir, 2nd in opposing In IPS mode, do the reverse. Flag TCP engine that data needs to be inspected regardless of how far we are wrt inspect limits. More... | |
int | StreamTcpSegmentForEach (const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc, void *data) |
Run callback function on each TCP segment. More... | |
int | StreamTcpBypassEnabled (void) |
int | StreamTcpInlineMode (void) |
See if stream engine is operating in inline mode. More... | |
void | TcpSessionSetReassemblyDepth (TcpSession *ssn, uint32_t size) |
const char * | StreamTcpStateAsString (const enum TcpState state) |
const char * | StreamTcpSsnStateAsString (const TcpSession *ssn) |
Variables | |
int | g_detect_disabled |
TcpStreamCnf | stream_config |
TCP stream tracking and reassembly engine.
Definition in file stream-tcp.c.
#define PSEUDO_PKT_SET_IPV4HDR | ( | nipv4h, | |
ipv4h | |||
) |
Definition at line 6010 of file stream-tcp.c.
#define PSEUDO_PKT_SET_IPV6HDR | ( | nipv6h, | |
ipv6h | |||
) |
Definition at line 6020 of file stream-tcp.c.
#define PSEUDO_PKT_SET_TCPHDR | ( | ntcph, | |
tcph | |||
) |
#define STREAMTCP_DEFAULT_MAX_SYNACK_QUEUED 5 |
Definition at line 88 of file stream-tcp.c.
#define STREAMTCP_DEFAULT_MEMCAP (64 * 1024 * 1024) /* 64mb */ |
Definition at line 84 of file stream-tcp.c.
#define STREAMTCP_DEFAULT_PREALLOC 2048 |
Definition at line 83 of file stream-tcp.c.
#define STREAMTCP_DEFAULT_REASSEMBLY_MEMCAP (256 * 1024 * 1024) /* 256mb */ |
Definition at line 85 of file stream-tcp.c.
#define STREAMTCP_DEFAULT_TOCLIENT_CHUNK_SIZE 2560 |
Definition at line 87 of file stream-tcp.c.
#define STREAMTCP_DEFAULT_TOSERVER_CHUNK_SIZE 2560 |
Definition at line 86 of file stream-tcp.c.
#define StreamTcpAsyncLastAckUpdate | ( | ssn, | |
stream | |||
) |
Definition at line 818 of file stream-tcp.c.
#define StreamTcpUpdateLastAck | ( | ssn, | |
stream, | |||
ack | |||
) |
macro to update last_ack only if the new value is higher
ssn | session |
stream | stream to update |
ack | ACK value to test and set |
Definition at line 801 of file stream-tcp.c.
#define StreamTcpUpdateNextSeq | ( | ssn, | |
stream, | |||
seq | |||
) |
Definition at line 829 of file stream-tcp.c.
#define StreamTcpUpdateNextWin | ( | ssn, | |
stream, | |||
win | |||
) |
macro to update next_win only if the new value is higher
ssn | session |
stream | stream to update |
win | window value to test and set |
Definition at line 842 of file stream-tcp.c.
SC_ATOMIC_DECLARE | ( | uint64_t | , |
st_memuse | |||
) |
TmEcode StreamTcp | ( | ThreadVars * | tv, |
Packet * | p, | ||
void * | data, | ||
PacketQueueNoLock * | pq | ||
) |
Definition at line 5262 of file stream-tcp.c.
References StreamTcpThread_::counter_tcp_no_flow, TcpStreamCnf_::flags, Packet_::flags, Packet_::flow, FlowGetPacketDirection(), Packet_::pcap_cnt, PKT_IS_TCP, PKT_PSEUDO_STREAM_END, SCLogDebug, StatsIncr(), stream_config, STREAMTCP_INIT_FLAG_CHECKSUM_VALIDATION, TM_ECODE_OK, TOSERVER, and tv.
int StreamTcpBypassEnabled | ( | void | ) |
Definition at line 6357 of file stream-tcp.c.
References TcpStreamCnf_::flags, stream_config, and STREAMTCP_INIT_FLAG_BYPASS.
int StreamTcpCheckMemcap | ( | uint64_t | size | ) |
Check if alloc'ing "size" would mean we're over memcap.
1 | if in bounds |
0 | if not in bounds |
Definition at line 160 of file stream-tcp.c.
References SC_ATOMIC_GET, and stream_config.
void StreamTcpDecrMemuse | ( | uint64_t | size | ) |
Definition at line 127 of file stream-tcp.c.
References BUG_ON, RunmodeIsUnittests(), SC_ATOMIC_GET, SC_ATOMIC_SUB, SCLogDebug, and StreamTcpMemuseCounter().
Referenced by StreamTcpSessionCleanup().
void StreamTcpDetectLogFlush | ( | ThreadVars * | tv, |
StreamTcpThread * | stt, | ||
Flow * | f, | ||
Packet * | p, | ||
PacketQueueNoLock * | pq | ||
) |
create packets in both directions to flush out logging and detection before switching protocols. In IDS mode, create first in packet dir, 2nd in opposing In IPS mode, do the reverse. Flag TCP engine that data needs to be inspected regardless of how far we are wrt inspect limits.
Definition at line 6286 of file stream-tcp.c.
References TcpSession_::client, TcpStream_::flags, PKT_IS_TOSERVER, Flow_::protoctx, TcpSession_::server, STREAMTCP_STREAM_FLAG_TRIGGER_RAW, StreamTcpInlineMode(), and ts.
void StreamTcpFreeConfig | ( | bool | quiet | ) |
Definition at line 662 of file stream-tcp.c.
References SCMutexLock, and StreamTcpReassembleFree().
Referenced by StreamTcpUTDeinit().
int StreamTcpGetFlowState | ( | void * | ) |
uint64_t StreamTcpGetMemcap | ( | void | ) |
Return memcap value.
memcap | memcap value |
Definition at line 188 of file stream-tcp.c.
References SC_ATOMIC_GET, and stream_config.
void StreamTcpIncrMemuse | ( | uint64_t | size | ) |
Definition at line 120 of file stream-tcp.c.
References SC_ATOMIC_ADD, SCLogDebug, and StreamTcpMemuseCounter().
void StreamTcpInitConfig | ( | bool | quiet | ) |
To initialize the stream global configuration data.
quiet | It tells the mode of operation, if it is true nothing will be get printed. |
Definition at line 357 of file stream-tcp.c.
References TcpStreamCnf_::async_oneside, ConfGetBool(), ConfGetInt(), ConfGetNode(), ConfGetValue(), EngineModeIsIPS(), FatalError, TcpStreamCnf_::flags, TcpStreamCnf_::max_synack_queued, TcpStreamCnf_::midstream, ParseSizeStringU16(), ParseSizeStringU32(), ParseSizeStringU64(), TcpStreamCnf_::prealloc_sessions, TcpStreamCnf_::reassembly_depth, TcpStreamCnf_::reassembly_toserver_chunk_size, RunmodeIsUnittests(), SC_ATOMIC_GET, SC_ATOMIC_INIT, SC_ATOMIC_SET, SC_ERR_FATAL, SC_ERR_SIZE_PARSE, SC_WARN_OPTION_OBSOLETE, SCLogDebug, SCLogError, SCLogWarning, stream_config, STREAMTCP_DEFAULT_MAX_SYNACK_QUEUED, STREAMTCP_DEFAULT_MEMCAP, STREAMTCP_DEFAULT_PREALLOC, STREAMTCP_DEFAULT_REASSEMBLY_MEMCAP, STREAMTCP_DEFAULT_TOSERVER_CHUNK_SIZE, STREAMTCP_INIT_FLAG_BYPASS, STREAMTCP_INIT_FLAG_CHECKSUM_VALIDATION, STREAMTCP_INIT_FLAG_DROP_INVALID, STREAMTCP_INIT_FLAG_INLINE, and WarnInvalidConfEntry.
Referenced by PreRunInit(), and StreamTcpUTInit().
void StreamTcpInitMemuse | ( | void | ) |
Definition at line 115 of file stream-tcp.c.
References SC_ATOMIC_INIT.
Referenced by UtRunTests().
int StreamTcpInlineDropInvalid | ( | void | ) |
See if stream engine is dropping invalid packet in inline mode.
0 | no |
1 | yes |
Definition at line 331 of file stream-tcp.c.
References TcpStreamCnf_::flags, stream_config, STREAMTCP_INIT_FLAG_DROP_INVALID, and STREAMTCP_INIT_FLAG_INLINE.
int StreamTcpInlineMode | ( | void | ) |
See if stream engine is operating in inline mode.
0 | no |
1 | yes |
Definition at line 6368 of file stream-tcp.c.
References TcpStreamCnf_::flags, stream_config, and STREAMTCP_INIT_FLAG_INLINE.
Referenced by StreamReassembleRaw(), StreamReassembleRawHasDataReady(), StreamTcpDetectLogFlush(), StreamTcpGetUsable(), and StreamTcpReassembleHandleSegment().
uint64_t StreamTcpMemuseCounter | ( | void | ) |
Definition at line 148 of file stream-tcp.c.
References SC_ATOMIC_GET.
Referenced by StreamTcpDecrMemuse(), and StreamTcpIncrMemuse().
int StreamTcpPacket | ( | ThreadVars * | tv, |
Packet * | p, | ||
StreamTcpThread * | stt, | ||
PacketQueueNoLock * | pq | ||
) |
Definition at line 4852 of file stream-tcp.c.
References DEBUG_ASSERT_FLOW_LOCKED, Packet_::flow, Packet_::pcap_cnt, SCEnter, and SCLogDebug.
Function to fetch a packet from the packet allocation queue for creation of the pseudo packet from the reassembled stream.
parent | Pointer to the parent of the pseudo packet |
pkt | pointer to the raw packet of the parent |
len | length of the packet |
Definition at line 6048 of file stream-tcp.c.
References Packet_::datalink, len, PacketCopyData(), PacketGetFromQueueOrAlloc(), Packet_::proto, Packet_::recursion_level, Packet_::root, SCEnter, SCReturnPtr, and Packet_::ts.
uint64_t StreamTcpReassembleMemuseGlobalCounter | ( | void | ) |
Definition at line 133 of file stream-tcp-reassemble.c.
void StreamTcpReturnStreamSegments | ( | TcpStream * | stream | ) |
return all segments in this stream into the pool(s)
stream | the stream to cleanup |
Definition at line 316 of file stream-tcp-reassemble.c.
References RB_FOREACH_SAFE, RB_REMOVE, TcpStream_::seg_tree, and StreamTcpSegmentReturntoPool().
Referenced by StreamTcpPruneSession(), StreamTcpSessionPktFree(), and StreamTcpStreamCleanup().
int StreamTcpSegmentForEach | ( | const Packet * | p, |
uint8_t | flag, | ||
StreamSegmentCallback | CallbackFunc, | ||
void * | data | ||
) |
Run callback function on each TCP segment.
Definition at line 6309 of file stream-tcp.c.
Referenced by StreamSegmentForEach().
void StreamTcpSessionCleanup | ( | TcpSession * | ssn | ) |
Session cleanup function. Does not free the ssn.
ssn | tcp session |
Definition at line 207 of file stream-tcp.c.
References TcpSession_::client, TcpStateQueue_::next, TcpSession_::queue, TcpSession_::queue_len, SCEnter, SCFree, SCReturn, TcpSession_::server, StreamTcpDecrMemuse(), and StreamTcpStreamCleanup().
Referenced by StreamTcpSessionClear(), StreamTcpUTClearSession(), and UTHRemoveSessionFromFlow().
void StreamTcpSessionClear | ( | void * | ssnptr | ) |
Function to return the stream back to the pool. It returns the segments in the stream to the segment pool.
This function is called when the flow is destroyed, so it should free everything related to the tcp session. So including the app layer data. We are guaranteed to only get here when the flow's use_cnt is 0.
ssn | Void ptr to the ssn. |
Definition at line 241 of file stream-tcp.c.
References PoolThreadReturn(), TcpSession_::res, SCEnter, and StreamTcpSessionCleanup().
void StreamTcpSessionPktFree | ( | Packet * | p | ) |
Function to return the stream segments back to the pool.
We don't clear out the app layer storage here as that is under protection of the "use_cnt" reference counter in the flow. This function is called when the use_cnt is always at least 1 (this pkt has incremented the flow use_cnt itself), so we don't bother.
p | Packet used to identify the stream. |
Definition at line 275 of file stream-tcp.c.
References TcpSession_::client, Packet_::flow, Flow_::protoctx, SCEnter, SCReturn, TcpSession_::server, and StreamTcpReturnStreamSegments().
void StreamTcpSetDisableRawReassemblyFlag | ( | TcpSession * | ssn, |
char | direction | ||
) |
Set the No reassembly flag for the given direction in given TCP session.
ssn | TCP Session to set the flag in |
direction | direction to set the flag in: 0 toserver, 1 toclient |
Definition at line 5993 of file stream-tcp.c.
References TcpSession_::client, TcpStream_::flags, TcpSession_::server, and STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED.
int StreamTcpSetMemcap | ( | uint64_t | size | ) |
Update memcap value.
size | new memcap value |
Definition at line 173 of file stream-tcp.c.
References SC_ATOMIC_GET, SC_ATOMIC_SET, and stream_config.
Function to set the OS policy for the given stream based on the destination of the received packet.
stream | TcpStream of which os_policy needs to set |
p | Packet which is used to set the os policy |
Definition at line 761 of file stream-tcp.c.
References GET_IPV4_DST_ADDR_PTR, GET_IPV6_DST_ADDR, TcpStream_::os_policy, OS_POLICY_BSD, OS_POLICY_BSD_RIGHT, OS_POLICY_DEFAULT, OS_POLICY_OLD_SOLARIS, OS_POLICY_SOLARIS, PKT_IS_IPV4, PKT_IS_IPV6, SCHInfoGetIPv4HostOSFlavour(), SCHInfoGetIPv6HostOSFlavour(), and SCLogDebug.
Referenced by StreamTcpReassembleHandleSegmentHandleData().
void StreamTcpSetSessionBypassFlag | ( | TcpSession * | ssn | ) |
enable bypass
ssn | TCP Session to set the flag in |
direction | direction to set the flag in: 0 toserver, 1 toclient |
Definition at line 6004 of file stream-tcp.c.
References TcpSession_::flags, and STREAMTCP_FLAG_BYPASS.
void StreamTcpSetSessionNoReassemblyFlag | ( | TcpSession * | ssn, |
char | direction | ||
) |
disable reassembly
Disable app layer and set raw inspect to no longer accept new data. Stream engine will then fully disable raw after last inspection.
ssn | TCP Session to set the flag in |
direction | direction to set the flag in: 0 toserver, 1 toclient |
Definition at line 5977 of file stream-tcp.c.
References TcpSession_::client, TcpStream_::flags, TcpSession_::flags, TcpSession_::server, STREAMTCP_FLAG_APP_LAYER_DISABLED, and STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED.
const char* StreamTcpSsnStateAsString | ( | const TcpSession * | ssn | ) |
Definition at line 6427 of file stream-tcp.c.
References TcpSession_::state, and StreamTcpStateAsString().
const char* StreamTcpStateAsString | ( | const enum TcpState | state | ) |
Definition at line 6383 of file stream-tcp.c.
References TCP_CLOSE_WAIT, TCP_CLOSED, TCP_CLOSING, TCP_ESTABLISHED, TCP_FIN_WAIT1, TCP_FIN_WAIT2, TCP_LAST_ACK, TCP_LISTEN, TCP_NONE, TCP_SYN_RECV, TCP_SYN_SENT, and TCP_TIME_WAIT.
Referenced by StreamTcpSsnStateAsString().
void StreamTcpStreamCleanup | ( | TcpStream * | stream | ) |
Definition at line 194 of file stream-tcp.c.
References TcpStream_::sb, StreamingBufferClear(), StreamTcpReturnStreamSegments(), and StreamTcpSackFreeList().
Referenced by StreamTcpSessionCleanup(), and StreamTcpUTClearStream().
TmEcode StreamTcpThreadDeinit | ( | ThreadVars * | tv, |
void * | data | ||
) |
Definition at line 5367 of file stream-tcp.c.
References StreamTcpThread_::ra_ctx, SCEnter, SCFree, SCReturnInt, StreamTcpReassembleFreeThreadCtx(), and TM_ECODE_OK.
TmEcode StreamTcpThreadInit | ( | ThreadVars * | tv, |
void * | initdata, | ||
void ** | data | ||
) |
Definition at line 5300 of file stream-tcp.c.
References StreamTcpThread_::counter_tcp_invalid_checksum, StreamTcpThread_::counter_tcp_midstream_pickups, StreamTcpThread_::counter_tcp_no_flow, StreamTcpThread_::counter_tcp_pseudo, StreamTcpThread_::counter_tcp_pseudo_failed, TcpReassemblyThreadCtx_::counter_tcp_reass_data_normal_fail, TcpReassemblyThreadCtx_::counter_tcp_reass_data_overlap_fail, TcpReassemblyThreadCtx_::counter_tcp_reass_gap, TcpReassemblyThreadCtx_::counter_tcp_reass_list_fail, TcpReassemblyThreadCtx_::counter_tcp_reass_overlap, TcpReassemblyThreadCtx_::counter_tcp_reass_overlap_diff_data, StreamTcpThread_::counter_tcp_rst, TcpReassemblyThreadCtx_::counter_tcp_segment_memcap, StreamTcpThread_::counter_tcp_sessions, StreamTcpThread_::counter_tcp_ssn_memcap, TcpReassemblyThreadCtx_::counter_tcp_stream_depth, StreamTcpThread_::counter_tcp_syn, StreamTcpThread_::counter_tcp_synack, StreamTcpThread_::counter_tcp_wrong_thread, StreamTcpThread_::ra_ctx, SCEnter, SCLogDebug, SCMalloc, SCMutexLock, SCReturnInt, StreamTcpThread_::ssn_pool_id, StatsRegisterCounter(), StreamTcpReassembleInitThreadCtx(), TM_ECODE_FAILED, tv, and unlikely.
void StreamTcpUpdateAppLayerProgress | ( | TcpSession * | ssn, |
char | direction, | ||
const uint32_t | progress | ||
) |
update reassembly progress
ssn | TCP Session |
direction | direction to set the flag in: 0 toserver, 1 toclient |
Definition at line 5959 of file stream-tcp.c.
References TcpStream_::app_progress_rel, TcpSession_::client, and TcpSession_::server.
Referenced by AppLayerHandleTCPData().
Definition at line 5250 of file stream-tcp.c.
References Packet_::proto, and Packet_::tcph.
void TcpSessionSetReassemblyDepth | ( | TcpSession * | ssn, |
uint32_t | size | ||
) |
Definition at line 6374 of file stream-tcp.c.
References TcpSession_::reassembly_depth.
int g_detect_disabled |
global indicating if detection is enabled
Definition at line 217 of file suricata.c.
TcpStreamCnf stream_config |
Definition at line 111 of file stream-tcp.c.
Referenced by NapatechGetStreamConfig(), StreamTcp(), StreamTcpBypassEnabled(), StreamTcpCheckMemcap(), StreamTcpGetMemcap(), StreamTcpInitConfig(), StreamTcpInlineDropInvalid(), StreamTcpInlineMode(), StreamTcpReassembleCheckMemcap(), StreamTcpReassembleGetMemcap(), StreamTcpReassembleSetMemcap(), StreamTcpSetMemcap(), StreamTcpUTDeinit(), StreamTcpUTInitInline(), StreamTcpUTSetupSession(), StreamTcpUTSetupStream(), and UTHAddSessionToFlow().