|
suricata
|
#include "suricata-common.h"#include "decode.h"#include "action-globals.h"#include "detect.h"#include "threads.h"#include "flow.h"#include "flow-util.h"#include "detect-hostbits.h"#include "util-spm.h"#include "detect-engine-sigorder.h"#include "app-layer-parser.h"#include "detect-parse.h"#include "detect-engine.h"#include "detect-engine-mpm.h"#include "detect-engine-state.h"#include "detect-engine-build.h"#include "flow-bit.h"#include "host-bit.h"#include "util-var-name.h"#include "util-unittest.h"#include "util-debug.h"
Go to the source code of this file.
Macros | |
| #define | PARSE_REGEX |
Functions | |
| void | DetectHostbitFree (DetectEngineCtx *, void *) |
| void | HostBitsRegisterTests (void) |
| this function registers unit tests for HostBits | |
| void | DetectHostbitsRegister (void) |
| int | DetectXbitMatchHost (Packet *p, const DetectXbitsData *xd) |
Implements the hostbits keyword
Definition in file detect-hostbits.c.
| #define PARSE_REGEX |
Definition at line 66 of file detect-hostbits.c.
| void DetectHostbitFree | ( | DetectEngineCtx * | de_ctx, |
| void * | ptr | ||
| ) |
Definition at line 446 of file detect-hostbits.c.
References DetectXbitsData_::idx, SCFree, VAR_TYPE_HOST_BIT, and VarNameStoreUnregister().
Referenced by DetectHostbitsRegister().


| void DetectHostbitsRegister | ( | void | ) |
Definition at line 81 of file detect-hostbits.c.
References SigTableElmt_::desc, DETECT_HOSTBITS, DetectHostbitFree(), DetectSetupParseRegexes(), SigTableElmt_::flags, SigTableElmt_::Free, HostBitsRegisterTests(), SigTableElmt_::Match, SigTableElmt_::name, PARSE_REGEX, SigTableElmt_::RegisterTests, SigTableElmt_::Setup, SIGMATCH_IPONLY_COMPAT, and sigmatch_table.
Referenced by SigTableSetup().


| int DetectXbitMatchHost | ( | Packet * | p, |
| const DetectXbitsData * | xd | ||
| ) |
Definition at line 248 of file detect-hostbits.c.
References DetectXbitsData_::cmd, DETECT_XBITS_CMD_ISNOTSET, DETECT_XBITS_CMD_ISSET, DETECT_XBITS_CMD_SET, DETECT_XBITS_CMD_TOGGLE, DETECT_XBITS_CMD_UNSET, and SCLogError.
| void HostBitsRegisterTests | ( | void | ) |
this function registers unit tests for HostBits
Definition at line 709 of file detect-hostbits.c.
References UtRegisterTest().
Referenced by DetectHostbitsRegister().

