]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: apply clang formatting 12274/head 12283/head
authorShivani Bhardwaj <shivani@oisf.net>
Fri, 13 Dec 2024 06:45:22 +0000 (12:15 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Fri, 13 Dec 2024 06:45:22 +0000 (12:15 +0530)
src/stream-tcp-private.h
src/stream-tcp.c

index d39bb91a88da21dc964364195be0fdd312b4dec3..2da93f6ce964202f0be69ccd2fb2689fd7f5fd22 100644 (file)
@@ -288,8 +288,8 @@ typedef struct TcpSession_ {
     int8_t data_first_seen_dir;
     /** track all the tcp flags we've seen */
     uint8_t tcp_packet_flags;
-    uint16_t urg_offset_ts;            /**< SEQ offset from accepted OOB urg bytes */
-    uint16_t urg_offset_tc;            /**< SEQ offset from accepted OOB urg bytes */
+    uint16_t urg_offset_ts; /**< SEQ offset from accepted OOB urg bytes */
+    uint16_t urg_offset_tc; /**< SEQ offset from accepted OOB urg bytes */
     /* coccinelle: TcpSession:flags:STREAMTCP_FLAG */
     uint32_t flags;
     uint32_t reassembly_depth; /**< reassembly depth for the stream */
index 6aff1537c151202d7b478692348d7812c292f33a..46b379f7de163db932a93f9b65b3c26b4846ad3e 100644 (file)
@@ -376,7 +376,6 @@ static const char *UrgentPolicyToString(enum TcpStreamUrgentHandling pol)
     return NULL;
 }
 
-
 /** \brief          To initialize the stream global configuration data
  *
  *  \param  quiet   It tells the mode of operation, if it is true nothing will
@@ -543,7 +542,8 @@ void StreamTcpInitConfig(bool quiet)
         stream_config.urgent_policy = TCP_STREAM_URGENT_DEFAULT;
     }
     if (!quiet) {
-        SCLogConfig("stream.reassembly.urgent.policy\": %s", UrgentPolicyToString(stream_config.urgent_policy));
+        SCLogConfig("stream.reassembly.urgent.policy\": %s",
+                UrgentPolicyToString(stream_config.urgent_policy));
     }
     if (stream_config.urgent_policy == TCP_STREAM_URGENT_OOB) {
         const char *temp_urgoobpol = NULL;
@@ -556,13 +556,15 @@ void StreamTcpInitConfig(bool quiet)
             } else if (strcmp(temp_urgoobpol, "gap") == 0) {
                 stream_config.urgent_oob_limit_policy = TCP_STREAM_URGENT_GAP;
             } else {
-                FatalError("stream.reassembly.urgent.oob-limit-policy: invalid value '%s'", temp_urgoobpol);
+                FatalError("stream.reassembly.urgent.oob-limit-policy: invalid value '%s'",
+                        temp_urgoobpol);
             }
         } else {
             stream_config.urgent_oob_limit_policy = TCP_STREAM_URGENT_DEFAULT;
         }
         if (!quiet) {
-            SCLogConfig("stream.reassembly.urgent.oob-limit-policy\": %s", UrgentPolicyToString(stream_config.urgent_oob_limit_policy));
+            SCLogConfig("stream.reassembly.urgent.oob-limit-policy\": %s",
+                    UrgentPolicyToString(stream_config.urgent_oob_limit_policy));
         }
     }