suricata
|
#include "suricata-common.h"
#include "suricata.h"
#include "util-byte.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-misc.h"
Go to the source code of this file.
Macros | |
#define | PARSE_REGEX "^\\s*(\\d+(?:.\\d+)?)\\s*([a-zA-Z]{2,3})?\\s*$" |
Functions | |
void | ParseSizeInit (void) |
void | ParseSizeDeinit (void) |
int | ParseSizeStringU8 (const char *size, uint8_t *res) |
int | ParseSizeStringU16 (const char *size, uint16_t *res) |
int | ParseSizeStringU32 (const char *size, uint32_t *res) |
int | ParseSizeStringU64 (const char *size, uint64_t *res) |
void | ShortenString (const char *input, char *output, size_t output_size, char c) |
void | UtilMiscRegisterTests (void) |
Definition in file util-misc.c.
#define PARSE_REGEX "^\\s*(\\d+(?:.\\d+)?)\\s*([a-zA-Z]{2,3})?\\s*$" |
Definition at line 32 of file util-misc.c.
void ParseSizeDeinit | ( | void | ) |
Definition at line 54 of file util-misc.c.
Referenced by GlobalsDestroy().
void ParseSizeInit | ( | void | ) |
Definition at line 35 of file util-misc.c.
Referenced by InitGlobal().
int ParseSizeStringU16 | ( | const char * | size, |
uint16_t * | res | ||
) |
Definition at line 156 of file util-misc.c.
int ParseSizeStringU32 | ( | const char * | size, |
uint32_t * | res | ||
) |
Definition at line 173 of file util-misc.c.
Referenced by PcapFileGlobalInit().
int ParseSizeStringU64 | ( | const char * | size, |
uint64_t * | res | ||
) |
Definition at line 190 of file util-misc.c.
Referenced by FlowInitConfig(), HTPParseMemcap(), HttpRangeContainersInit(), RunModeInitializeThreadSettings(), and StreamTcpInitConfig().
int ParseSizeStringU8 | ( | const char * | size, |
uint8_t * | res | ||
) |
Definition at line 139 of file util-misc.c.
void ShortenString | ( | const char * | input, |
char * | output, | ||
size_t | output_size, | ||
char | c | ||
) |
Definition at line 207 of file util-misc.c.
References strlcat().
Referenced by DetectAppLayerMpmRegisterByParentId().
void UtilMiscRegisterTests | ( | void | ) |
Definition at line 809 of file util-misc.c.
References UtRegisterTest().