]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: fix function style
authorVictor Julien <victor@inliniac.net>
Thu, 12 Mar 2020 18:52:58 +0000 (19:52 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Mar 2020 21:02:19 +0000 (22:02 +0100)
src/stream-tcp-reassemble.h
src/stream-tcp.c

index 82423a75fdc4a28793595b7f31a1254d08b8b029..fe9b400d7ea38cb8b0d2980f65b149af394f4621 100644 (file)
@@ -94,9 +94,9 @@ int StreamTcpReassembleAppLayer (ThreadVars *tv, TcpReassemblyThreadCtx *ra_ctx,
 
 void StreamTcpCreateTestPacket(uint8_t *, uint8_t, uint8_t, uint8_t);
 
-void StreamTcpSetSessionNoReassemblyFlag (TcpSession *, char );
-void StreamTcpSetSessionBypassFlag (TcpSession *);
-void StreamTcpSetDisableRawReassemblyFlag (TcpSession *ssn, char direction);
+void StreamTcpSetSessionNoReassemblyFlag(TcpSession *, char);
+void StreamTcpSetSessionBypassFlag(TcpSession *);
+void StreamTcpSetDisableRawReassemblyFlag(TcpSession *, char);
 
 void StreamTcpSetOSPolicy(TcpStream *, Packet *);
 
index 20bac5e94ed21c72ffe4a92ec74864ba27198b7c..c6ccbffc549dc93f926c7daf8eedc9b624a77a92 100644 (file)
@@ -5857,7 +5857,7 @@ invalid:
  * \param ssn TCP Session to set the flag in
  * \param direction direction to set the flag in: 0 toserver, 1 toclient
  */
-void StreamTcpSetSessionNoReassemblyFlag (TcpSession *ssn, char direction)
+void StreamTcpSetSessionNoReassemblyFlag(TcpSession *ssn, char direction)
 {
     ssn->flags |= STREAMTCP_FLAG_APP_LAYER_DISABLED;
     if (direction) {
@@ -5873,7 +5873,7 @@ void StreamTcpSetSessionNoReassemblyFlag (TcpSession *ssn, char direction)
  * \param ssn TCP Session to set the flag in
  * \param direction direction to set the flag in: 0 toserver, 1 toclient
  */
-void StreamTcpSetDisableRawReassemblyFlag (TcpSession *ssn, char direction)
+void StreamTcpSetDisableRawReassemblyFlag(TcpSession *ssn, char direction)
 {
     direction ? (ssn->server.flags |= STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED) :
                 (ssn->client.flags |= STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED);
@@ -5884,7 +5884,7 @@ void StreamTcpSetDisableRawReassemblyFlag (TcpSession *ssn, char direction)
  * \param ssn TCP Session to set the flag in
  * \param direction direction to set the flag in: 0 toserver, 1 toclient
  */
-void StreamTcpSetSessionBypassFlag (TcpSession *ssn)
+void StreamTcpSetSessionBypassFlag(TcpSession *ssn)
 {
     ssn->flags |= STREAMTCP_FLAG_BYPASS;
 }