Thanks to Josh Soref.
} 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
}
/**
- * \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
*
* \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.
*
*/
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
*/
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) {
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));
* \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
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);
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) {
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;
/**
* \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.
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));
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));
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));
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));
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));
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));
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));
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));
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));
#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)
{
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());
/**
* \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.
* 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.
uint8_t *original_pat;
/* case sensitive */
uint8_t *cs;
- /* case INsensitive */
+ /* case insensitive */
uint8_t *ci;
/* pattern id */
uint32_t id;
}
/**
- * \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"
*