suricata
|
#include "suricata-common.h"
Go to the source code of this file.
Functions | |
uint8_t * | BasicSearch (const uint8_t *, uint32_t, const uint8_t *, uint16_t) |
Basic search improved. Limits are better handled, so it doesn't start searches that wont fit in the remaining buffer. More... | |
uint8_t * | BasicSearchNocase (const uint8_t *, uint32_t, const uint8_t *, uint16_t) |
Basic search case less. More... | |
uint32_t | BasicSearchNocaseIndex (const uint8_t *, uint32_t, const uint8_t *, uint16_t) |
Definition in file util-spm-bs.h.
uint8_t* BasicSearch | ( | const uint8_t * | haystack, |
uint32_t | haystack_len, | ||
const uint8_t * | needle, | ||
uint16_t | needle_len | ||
) |
Basic search improved. Limits are better handled, so it doesn't start searches that wont fit in the remaining buffer.
haystack | pointer to the buffer to search in |
haystack_len | length limit of the buffer |
needle | pointer to the pattern we ar searching for |
needle_len | length limit of the needle |
ptr | to start of the match; NULL if no match |
Definition at line 47 of file util-spm-bs.c.
References SCEnter, SCLogDebug, and SCReturnPtr.
Referenced by UTHmemsearch().
uint8_t* BasicSearchNocase | ( | const uint8_t * | haystack, |
uint32_t | haystack_len, | ||
const uint8_t * | needle, | ||
uint16_t | needle_len | ||
) |
Basic search case less.
haystack | pointer to the buffer to search in |
haystack_len | length limit of the buffer |
needle | pointer to the pattern we ar searching for |
needle_len | length limit of the needle |
ptr | to start of the match; NULL if no match |
Definition at line 101 of file util-spm-bs.c.
References u8_tolower.
Referenced by BasicSearchNocaseIndex().
uint32_t BasicSearchNocaseIndex | ( | const uint8_t * | , |
uint32_t | , | ||
const uint8_t * | , | ||
uint16_t | |||
) |
Definition at line 134 of file util-spm-bs.c.
References BasicSearchNocase().