suricata
|
#include "suricata-common.h"
#include "threads.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "detect-tos.h"
#include "app-layer-protos.h"
#include "flow.h"
#include "flow-var.h"
#include "flow-util.h"
#include "util-byte.h"
#include "util-debug.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
Go to the source code of this file.
Macros | |
#define | PARSE_REGEX "^\\s*(!?\\s*[0-9]{1,3}|!?\\s*[xX][0-9a-fA-F]{1,2})\\s*$" |
#define | DETECT_IPTOS_MIN 0 |
#define | DETECT_IPTOS_MAX 255 |
#define | MAX_SUBSTRINGS 30 |
Functions | |
void | DetectTosRegister (void) |
Register Tos keyword. More... | |
Definition in file detect-tos.c.
#define DETECT_IPTOS_MAX 255 |
Definition at line 58 of file detect-tos.c.
Referenced by DetectTosRegister().
#define DETECT_IPTOS_MIN 0 |
Definition at line 57 of file detect-tos.c.
Referenced by DetectTosRegister().
#define MAX_SUBSTRINGS 30 |
Referenced by DetectTosRegister().
#define PARSE_REGEX "^\\s*(!?\\s*[0-9]{1,3}|!?\\s*[xX][0-9a-fA-F]{1,2})\\s*$" |
Definition at line 46 of file detect-tos.c.
Referenced by DetectTosRegister().
void DetectTosRegister | ( | void | ) |
Register Tos keyword.
Definition at line 63 of file detect-tos.c.
References ByteExtractStringSigned(), SigMatch_::ctx, SigTableElmt_::desc, DETECT_IPTOS_MAX, DETECT_IPTOS_MIN, DETECT_SM_LIST_MATCH, DETECT_TOS, DetectSetupParseRegexes(), DOC_URL, DOC_VERSION, Signature_::flags, SigTableElmt_::flags, SigTableElmt_::Free, Signature_::init_data, Packet_::ip4h, IPV4_GET_IPTOS, IPV4_SET_RAW_IPTOS, SigTableElmt_::Match, MAX_SUBSTRINGS, SigTableElmt_::name, DetectTosData_::negated, SignatureInitData_::negated, PARSE_REGEX, PKT_IS_IPV4, PKT_IS_PSEUDOPKT, SigTableElmt_::RegisterTests, res, SC_ERR_INVALID_SIGNATURE, SC_ERR_PCRE_GET_SUBSTRING, SC_ERR_PCRE_MATCH, SCFree, SCLogDebug, SCLogError, SCMalloc, SigTableElmt_::Setup, SIG_FLAG_REQUIRE_PACKET, SIGMATCH_HANDLE_NEGATION, SIGMATCH_QUOTES_OPTIONAL, sigmatch_table, SigMatchAlloc(), SigMatchAppendSMToList(), DetectTosData_::tos, SigMatch_::type, unlikely, SigTableElmt_::url, UTHBuildPacket(), UTHFreePackets(), UTHGenericTest(), and UtRegisterTest().
Referenced by SigTableSetup().