]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: remove unused StreamTcpGetStreamSize function
authorVictor Julien <victor@inliniac.net>
Wed, 1 Mar 2017 14:34:14 +0000 (15:34 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Apr 2017 15:41:11 +0000 (17:41 +0200)
src/stream-tcp.c
src/stream-tcp.h

index 56e7809ada8ea4f785d22708ceff950592a52842..06e24936be35cd70c735697637f5226849570c84 100644 (file)
@@ -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
  *
index 86646fbed97e56b1293a1756a3e1b1dd566e61db..0f0e301e5081dd3611b8d13e24ca8297abf57623 100644 (file)
@@ -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__ */