From: Victor Julien Date: Wed, 27 Apr 2016 19:47:10 +0000 (+0200) Subject: stream: small cleanups X-Git-Tag: suricata-4.0.0-beta1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bd11bcda5079fbb34727605c2f23ce605ebbbce;p=thirdparty%2Fsuricata.git stream: small cleanups --- diff --git a/src/stream-tcp-reassemble.h b/src/stream-tcp-reassemble.h index 5cdf88e6eb..7dd4c666f2 100644 --- a/src/stream-tcp-reassemble.h +++ b/src/stream-tcp-reassemble.h @@ -79,9 +79,6 @@ void StreamTcpSetSessionNoReassemblyFlag (TcpSession *, char ); void StreamTcpSetDisableRawReassemblyFlag (TcpSession *ssn, char direction); void StreamTcpSetOSPolicy(TcpStream *, Packet *); -void StreamTcpReassemblePause (TcpSession *, char ); -void StreamTcpReassembleUnPause (TcpSession *, char ); -int StreamTcpCheckStreamContents(uint8_t *, uint16_t , TcpStream *); int StreamTcpReassembleHandleSegmentHandleData(ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx, TcpSession *ssn, TcpStream *stream, Packet *p); @@ -103,5 +100,9 @@ int StreamTcpReassembleCheckMemcap(uint32_t size); void StreamTcpDisableAppLayer(Flow *f); int StreamTcpAppLayerIsDisabled(Flow *f); +#ifdef UNITTESTS +int StreamTcpCheckStreamContents(uint8_t *, uint16_t , TcpStream *); +#endif + #endif /* __STREAM_TCP_REASSEMBLE_H__ */ diff --git a/src/stream-tcp.h b/src/stream-tcp.h index fb69ed145e..2a42785c55 100644 --- a/src/stream-tcp.h +++ b/src/stream-tcp.h @@ -27,10 +27,6 @@ #include "stream-tcp-private.h" -#define COUNTER_STREAMTCP_STREAMS 1 - -#include "app-layer-detect-proto.h" -#include "util-mpm.h" #include "stream.h" #include "stream-tcp-reassemble.h"