]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/tcp: correct spelling typos
authorJeff Lucovsky <jeff@lucovsky.org>
Wed, 14 Aug 2019 23:20:21 +0000 (19:20 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 22 Aug 2019 12:21:15 +0000 (14:21 +0200)
src/stream-tcp-reassemble.c
src/stream-tcp.c

index 1b23e27f74df53519724f3a021b72dad4b490053..647b0d4145eda21f52b27b90486630e680b5ce1e 100644 (file)
@@ -504,7 +504,7 @@ int StreamTcpReassembleDepthReached(Packet *p)
 /**
  *  \internal
  *  \brief Function to Check the reassembly depth valuer against the
- *        allowed max depth of the stream reassmbly for TCP streams.
+ *        allowed max depth of the stream reassembly for TCP streams.
  *
  *  \param stream stream direction
  *  \param seq sequence number where "size" starts
@@ -1421,7 +1421,7 @@ static int StreamReassembleRawInline(TcpSession *ssn, const Packet *p,
                     // more trailing data than we need
 
                     if (before >= (chunk_size - p->payload_len) / 2) {
-                        // also more heading data, devide evenly
+                        // also more heading data, divide evenly
                         before = after = (chunk_size - p->payload_len) / 2;
                     } else {
                         // heading data is less than requested, give the
@@ -1640,7 +1640,7 @@ int StreamReassembleRaw(TcpSession *ssn, const Packet *p,
                         StreamReassembleRawFunc Callback, void *cb_data,
                         uint64_t *progress_out, bool respect_inspect_depth)
 {
-    /* handle inline seperately as the logic is very different */
+    /* handle inline separately as the logic is very different */
     if (StreamTcpInlineMode() == TRUE) {
         return StreamReassembleRawInline(ssn, p, Callback, cb_data, progress_out);
     }
index ddfeb4951a7dc1ac849cb5e2ce3af3532594b970..ae7a7341a66586c1eeba93b969811bca882b4e39 100644 (file)
@@ -1055,7 +1055,7 @@ static int StreamTcpPacketStateNone(ThreadVars *tv, Packet *p,
 
         if (TCP_GET_SACKOK(p) == 1) {
             ssn->flags |= STREAMTCP_FLAG_CLIENT_SACKOK;
-            SCLogDebug("ssn %p: SACK permited on SYN packet", ssn);
+            SCLogDebug("ssn %p: SACK permitted on SYN packet", ssn);
         }
 
         if (TCP_HAS_TFO(p)) {