From: Victor Julien Date: Wed, 1 Mar 2017 14:34:14 +0000 (+0100) Subject: stream: remove unused StreamTcpGetStreamSize function X-Git-Tag: suricata-4.0.0-beta1~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fefe7019629f62e97d2fa71a02318c4633ad234;p=thirdparty%2Fsuricata.git stream: remove unused StreamTcpGetStreamSize function --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 56e7809ada..06e24936be 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -725,20 +725,6 @@ void StreamTcpSetOSPolicy(TcpStream *stream, Packet *p) } -/** - * \brief get the size of a stream - * - * \note this just calculates the diff between isn and last_ack - * and will not consider sequence wrap arounds (streams - * bigger than 4gb). - * - * \retval size stream size - */ -uint32_t StreamTcpGetStreamSize(TcpStream *stream) -{ - return (stream->last_ack - stream->isn - 1); -} - /** * \brief macro to update last_ack only if the new value is higher * diff --git a/src/stream-tcp.h b/src/stream-tcp.h index 86646fbed9..0f0e301e50 100644 --- a/src/stream-tcp.h +++ b/src/stream-tcp.h @@ -203,7 +203,5 @@ void StreamTcpStreamCleanup(TcpStream *stream); /* check if bypass is enabled */ int StreamTcpBypassEnabled(void); -uint32_t StreamTcpGetStreamSize(TcpStream *stream); - #endif /* __STREAM_TCP_H__ */