]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: reduce scope of new ssn func
authorVictor Julien <victor@inliniac.net>
Wed, 19 Apr 2017 13:47:09 +0000 (15:47 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 21 Apr 2017 16:51:26 +0000 (18:51 +0200)
src/stream-tcp.c

index 06e24936be35cd70c735697637f5226849570c84..0db8f496e3ee4f44a683760b6859e6957cd628f8 100644 (file)
@@ -610,7 +610,8 @@ void StreamTcpFreeConfig(char quiet)
     SCLogDebug("ssn_pool_cnt %"PRIu64"", ssn_pool_cnt);
 }
 
-/** \brief The function is used to to fetch a TCP session from the
+/** \internal
+ *  \brief The function is used to to fetch a TCP session from the
  *         ssn_pool, when a TCP SYN is received.
  *
  *  \param p packet starting the new TCP session.
@@ -618,7 +619,7 @@ void StreamTcpFreeConfig(char quiet)
  *
  *  \retval ssn new TCP session.
  */
-TcpSession *StreamTcpNewSession (Packet *p, int id)
+static TcpSession *StreamTcpNewSession (Packet *p, int id)
 {
     TcpSession *ssn = (TcpSession *)p->flow->protoctx;