]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
src: various comment spelling fixes 8840/head
authorVictor Julien <vjulien@oisf.net>
Mon, 8 May 2023 09:56:38 +0000 (11:56 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 8 May 2023 09:59:45 +0000 (11:59 +0200)
Thanks to Josh Soref.

15 files changed:
src/alert-debuglog.c
src/alert-syslog.c
src/app-layer-htp.c
src/app-layer-smtp.c
src/app-layer-ssl.c
src/detect-content.c
src/detect-filestore.c
src/output-eve-stream.c
src/source-af-xdp.c
src/tests/stream-tcp.c
src/util-cidr.c
src/util-ebpf.c
src/util-lua-smtp.c
src/util-mpm.h
src/util-print.c

index 15adc31d36f95e977674a41f78d26edecf885370..dfcd2938d3ab360e8c2ecbbcb356a6dcbce77ae9 100644 (file)
@@ -67,7 +67,7 @@ typedef struct AlertDebugLogThread_ {
 } AlertDebugLogThread;
 
 /**
- *  \brief Function to log the FlowVars in to alert-debug.log
+ *  \brief Function to log the FlowVars into alert-debug.log
  *
  *  \param aft Pointer to AlertDebugLog Thread
  *  \param p Pointer to the packet
@@ -115,7 +115,7 @@ static void AlertDebugLogFlowVars(AlertDebugLogThread *aft, const Packet *p)
 }
 
 /**
- *  \brief Function to log the PktVars in to alert-debug.log
+ *  \brief Function to log the PktVars into alert-debug.log
  *
  *  \param aft Pointer to AlertDebugLog Thread
  *  \param p Pointer to the packet
index 9a0429b8eefe4994aec7e3b2aeb0625bf9d8d19c..fa585811bb5d0d24dc9c9559c8ae8cf9c78e68bc 100644 (file)
@@ -20,7 +20,7 @@
  *
  * \author Gurvinder Singh <gurvindersinghdahiya@gmail.com>
  *
- * Logs alerts in a line based text format in to syslog.
+ * Logs alerts in a line based text format into syslog.
  *
  */
 
index 210283e071add4e6f08691e8f0d04ac355d8ec4c..97c4ada3f4858bec150bd3b1d76c2d7f4093fcc6 100644 (file)
@@ -2184,10 +2184,9 @@ static int HTPCallbackResponseStart(htp_tx_t *tx)
     SCReturnInt(HTP_OK);
 }
 
-
 /**
  *  \brief  callback for request to store the recent incoming request
-            in to the recent_in_tx for the given htp state
+            into the recent_in_tx for the given htp state
  *  \param  connp   pointer to the current connection parser which has the htp
  *                  state in it as user data
  */
index bdd61d3464d4dd0d940e084b96afd59b1ad9da96..7630cf28190b5d7a0b989dd530e92aaef444e695 100644 (file)
@@ -1140,7 +1140,7 @@ static int SMTPProcessRequest(SMTPState *state, Flow *f, AppLayerParserState *ps
     SMTPTransaction *tx = state->curr_tx;
 
     /* If current input is to be discarded because it completes a long line,
-     * line's length and delimeter len are reset to 0. Skip processing this line.
+     * line's length and delimiter len are reset to 0. Skip processing this line.
      * This line is only to get us out of the state where we should discard any
      * data till LF. */
     if (line->len == 0 && line->delim_len == 0) {
index d754d9392454047449650277feb93a04cfdfec16..302225f1903d76aefbd6e5c151502fc53d9b285c 100644 (file)
@@ -1684,7 +1684,7 @@ static int SSLv3ParseHandshakeProtocol(SSLState *ssl_state, const uint8_t *input
             continue;
         }
 
-        /* if the message lenght exceeds our input_len, we have a tls fragment. */
+        /* if the message length exceeds our input_len, we have a tls fragment. */
         if (record_len > input_len) {
             const uint32_t avail = input_len;
             const uint32_t size = avail + (4096 - (avail % 4096));
index 5640ea773edacc1cf633d3c0a314256d84be0983..92f2969176b44043fc0070c3fb644fabe50914dd 100644 (file)
@@ -396,7 +396,7 @@ void DetectContentFree(DetectEngineCtx *de_ctx, void *ptr)
  *  \param max_size Maximum buffer/data size allowed.
  *  \param list signature match list.
  *  \param len Maximum length required
- *  \param offset Maximum offset encounted
+ *  \param offset Maximum offset encountered
  *
  *  Note that negated content does not contribute to the maximum
  *  required size value. However, each negated content's values
index 9fe533c6180e3e49490c25abc28ea35dfc3d5659..d19763d5eeb38b7a4f0359b7d27372d6875fbd48 100644 (file)
@@ -152,7 +152,7 @@ static int FilestorePostMatchWithOptions(Packet *p, Flow *f, const DetectFilesto
     if (this_file)  {
         FileStoreFileById(fc, file_id);
     } else if (this_tx) {
-        /* set in AppLayerTxData. Parsers and logger will propegate it to the
+        /* set in AppLayerTxData. Parsers and logger will propagate it to the
          * individual files, both new and current. */
         void *txv = AppLayerParserGetTx(f->proto, f->alproto, f->alstate, tx_id);
         DEBUG_VALIDATE_BUG_ON(txv == NULL);
index f986cdff4dc59f48ffa29f79d688baa292eb86b6..446fb3e60e18771b49d133db7028da2d55909388 100644 (file)
@@ -80,7 +80,7 @@ static TmEcode EveStreamLogThreadInit(ThreadVars *t, const void *initdata, void
         goto error_exit;
     }
 
-    /** Use the Ouptut Context (file pointer and mutex) */
+    /** Use the Output Context (file pointer and mutex) */
     aft->stream_ctx = ((OutputCtx *)initdata)->data;
     aft->ctx = CreateEveThreadCtx(t, aft->stream_ctx->eve_ctx);
     if (!aft->ctx) {
index 6f8f8815e0de7261181060934d975acbb51432c0..f68f7f5724e97d812bd347d3381219c6009e9601 100644 (file)
@@ -172,7 +172,7 @@ typedef struct AFXDPThreadVars_ {
     char iface[AFXDP_IFACE_NAME_LENGTH];
     uint32_t ifindex;
 
-    /* AF_XDP stucture */
+    /* AF_XDP structure */
     struct UmemInfo umem;
     struct XskSockInfo xsk;
     uint32_t gro_flush_timeout;
@@ -263,7 +263,7 @@ static inline void AFXDPDumpCounters(AFXDPThreadVars *ptv)
 /**
  * \brief Init function for socket creation.
  *
- * Mutex used to synchonise initialisation - each socket opens a
+ * Mutex used to synchronise initialisation - each socket opens a
  * different queue. The specific order in which each queue is
  * opened is not important, but it is vital the queue_num's
  * are different.
index 033a47c8b34e4debf49e6456badf3c2c094b5ce1..32ccb73f92cbcd4fb2a2ae72fb813ad0cadbb2a2 100644 (file)
@@ -1119,7 +1119,7 @@ static int StreamTcpTest14(void)
 
     StreamTcpUTInit(&stt.ra_ctx);
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string, strlen(dummy_conf_string));
@@ -1509,7 +1509,7 @@ static int StreamTcpTest15(void)
 
     StreamTcpUTInit(&stt.ra_ctx);
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -1671,7 +1671,7 @@ static int StreamTcpTest16(void)
 
     StreamTcpUTInit(&stt.ra_ctx);
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -1834,7 +1834,7 @@ static int StreamTcpTest17(void)
 
     StreamTcpUTInit(&stt.ra_ctx);
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -1982,7 +1982,7 @@ static int StreamTcpTest18(void)
     StreamTcpUTInit(&stt.ra_ctx);
     SCHInfoCleanResources();
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -2029,7 +2029,7 @@ static int StreamTcpTest19(void)
     StreamTcpUTInit(&stt.ra_ctx);
     SCHInfoCleanResources();
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -2079,7 +2079,7 @@ static int StreamTcpTest20(void)
     StreamTcpUTInit(&stt.ra_ctx);
     SCHInfoCleanResources();
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -2129,7 +2129,7 @@ static int StreamTcpTest21(void)
     StreamTcpUTInit(&stt.ra_ctx);
     SCHInfoCleanResources();
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
@@ -2179,7 +2179,7 @@ static int StreamTcpTest22(void)
     StreamTcpUTInit(&stt.ra_ctx);
     SCHInfoCleanResources();
 
-    /* Load the config string in to parser */
+    /* Load the config string into parser */
     ConfCreateContextBackup();
     ConfInit();
     ConfYamlLoadString(dummy_conf_string1, strlen(dummy_conf_string1));
index de93a535e20646bff0ebe97d01f0b7c4e1a4d215..4e6e18d67aef7a4b384ac3c66a670c20135da7aa 100644 (file)
@@ -28,8 +28,9 @@
 #include "util-debug.h"
 #include "util-unittest.h"
 
-/** \brief turn 32 bit mask into CIDR
- *  \retval cidr cidr value or -1 if the netmask can't be expressed as cidr
+/** \brief Turn 32 bit mask into CIDR
+ *
+ *  \retval cidr The cidr value or -1 if the netmask can't be expressed as cidr
  */
 int CIDRFromMask(uint32_t netmask)
 {
index 901fb662109f105f78cc5fb8a94089f382a3d41e..af99dca227a7bac4be4074a9363eee119bf7ca22 100644 (file)
@@ -513,7 +513,7 @@ static bool EBPFCreateFlowForKey(struct flows_stats *flowstats, LiveDevice *dev,
         return false;
 
     /* set accounting, we can't know the direction, so let's just start to
-     * server then if we already have something in to server to client. We need
+     * serve them if we already have something from server to client. We need
      * these numbers as we will use it to see if we have new traffic coming
      * on the flow */
     FlowBypassInfo *fc = FlowGetStorageById(f, GetFlowBypassInfoID());
index 38966e93d8b0091c369e2afe0fe12706aa036528..a0ecf815d98be0a86dd844a5fb8391db6a37f80c 100644 (file)
@@ -256,7 +256,7 @@ static int SMTPGetMailFrom(lua_State *luastate)
 /**
  * \brief intern function used by SMTPGetRcpList
  *
- * \params luastate luastate stack for internal communication with Lua.
+ * \param luastate luastate stack for internal communication with Lua.
  * Used to hand over data to the receiving luascript.
  *
  * \retval 1 if the table is pushed to lua.
@@ -296,7 +296,7 @@ static int GetRcptList(lua_State *luastate, Flow *flow)
  * flow->SMTPState->SMTPTransaction, adding all items to a table.
  * Then pushing it to the luastate stack.
  *
- * \params luastate luastate stack for internal communication with Lua.
+ * \param luastate luastate stack for internal communication with Lua.
  * Used to hand over data to the receiving luascript.
  *
  * \retval 1 if the table is pushed to lua.
index 422a2779d34f19bb65d6baeef2ec2d181b71ab7c..afcaeaf14d13fa8092fb6ef772bb437a56ea21c6 100644 (file)
@@ -68,7 +68,7 @@ typedef struct MpmPattern_ {
     uint8_t *original_pat;
     /* case sensitive */
     uint8_t *cs;
-    /* case INsensitive */
+    /* case insensitive */
     uint8_t *ci;
     /* pattern id */
     uint32_t id;
index 1d918be3adc587e60d1af8e0749a430d0e9f4256..ef69efe4b1eda74a094f945ff3b8d28839196631 100644 (file)
@@ -51,7 +51,7 @@ void PrintBufferRawLineHex(char *nbuf, int *offset, int max_size, const uint8_t
 }
 
 /**
- *  \brief print a buffer as hex on a single line in to retbuf buffer
+ *  \brief print a buffer as hex on a single line into retbuf buffer
  *
  *  Prints in the format "00 AA BB"
  *