|
suricata
|
#include "suricata-common.h"#include "app-layer-htp-mem.h"#include "conf.h"#include "util-misc.h"#include "util-debug.h"
Go to the source code of this file.
Functions | |
| SC_ATOMIC_DECLARE (uint64_t, htp_config_memcap) | |
| SC_ATOMIC_DECLARE (uint64_t, htp_memuse) | |
| SC_ATOMIC_DECLARE (uint64_t, htp_memcap) | |
| void | HTPParseMemcap (void) |
| uint64_t | HTPMemuseGlobalCounter (void) |
| uint64_t | HTPMemcapGlobalCounter (void) |
| int | HTPSetMemcap (uint64_t size) |
| Update memcap value. More... | |
| uint64_t | HTPGetMemcap (void) |
| Update memcap value. More... | |
| void * | HTPMalloc (size_t size) |
| void * | HTPCalloc (size_t n, size_t size) |
| void * | HTPRealloc (void *ptr, size_t orig_size, size_t size) |
| void | HTPFree (void *ptr, size_t size) |
This file provides a memory handling for the HTTP protocol support.
Definition in file app-layer-htp-mem.c.
| void* HTPCalloc | ( | size_t | n, |
| size_t | size | ||
| ) |
Definition at line 153 of file app-layer-htp-mem.c.
Referenced by HtpBodyAppendChunk().

| void HTPFree | ( | void * | ptr, |
| size_t | size | ||
| ) |
Definition at line 198 of file app-layer-htp-mem.c.
References SCFree.
Referenced by HtpBodyAppendChunk(), HtpBodyFree(), HtpBodyPrune(), and HTPStateFree().

| uint64_t HTPGetMemcap | ( | void | ) |
Update memcap value.
| memcap | value |
Definition at line 126 of file app-layer-htp-mem.c.
References SC_ATOMIC_GET.
| void* HTPMalloc | ( | size_t | size | ) |
Definition at line 132 of file app-layer-htp-mem.c.
| uint64_t HTPMemcapGlobalCounter | ( | void | ) |
Definition at line 86 of file app-layer-htp-mem.c.
References SC_ATOMIC_GET.
Referenced by AppLayerRegisterGlobalCounters().

| uint64_t HTPMemuseGlobalCounter | ( | void | ) |
Definition at line 80 of file app-layer-htp-mem.c.
References SC_ATOMIC_GET.
Referenced by AppLayerRegisterGlobalCounters().

| void HTPParseMemcap | ( | void | ) |
set config values for memcap, prealloc and hash_size
Definition at line 43 of file app-layer-htp-mem.c.
References ParseSizeStringU64(), SC_ATOMIC_GET, SC_ATOMIC_INIT, SC_ATOMIC_SET, SCConfGet(), SCLogError, and SCLogInfo.

| void* HTPRealloc | ( | void * | ptr, |
| size_t | orig_size, | ||
| size_t | size | ||
| ) |
Definition at line 174 of file app-layer-htp-mem.c.
| int HTPSetMemcap | ( | uint64_t | size | ) |
Update memcap value.
| size | new memcap value |
Definition at line 112 of file app-layer-htp-mem.c.
References SC_ATOMIC_GET, and SC_ATOMIC_SET.
| SC_ATOMIC_DECLARE | ( | uint64_t | , |
| htp_config_memcap | |||
| ) |
| SC_ATOMIC_DECLARE | ( | uint64_t | , |
| htp_memcap | |||
| ) |
| SC_ATOMIC_DECLARE | ( | uint64_t | , |
| htp_memuse | |||
| ) |