|
suricata
|

Go to the source code of this file.
Data Structures | |
| struct | DetectParseRegex |
Typedefs | |
| typedef struct DetectEngineCtx_ | DetectEngineCtx |
| typedef struct Signature_ | Signature |
| typedef struct SigMatchCtx_ | SigMatchCtx |
| typedef struct SigMatch_ | SigMatch |
| typedef struct SigMatchData_ | SigMatchData |
| typedef struct DetectParseRegex | DetectParseRegex |
Enumerations | |
| enum | { SIG_DIREC_NORMAL, SIG_DIREC_SWITCHED } |
| enum | { SIG_DIREC_SRC, SIG_DIREC_DST } |
Functions | |
| int | SignatureInitDataBufferCheckExpand (Signature *s) |
| check if buffers array still has space left, expand if not More... | |
| Signature * | SigAlloc (void) |
| void | SigFree (DetectEngineCtx *de_ctx, Signature *s) |
| Signature * | SigInit (DetectEngineCtx *, const char *sigstr) |
| Parses a signature and adds it to the Detection Engine Context. More... | |
| SigMatchData * | SigMatchList2DataArray (SigMatch *head) |
| convert SigMatch list to SigMatchData array More... | |
| void | SigParseRegisterTests (void) |
| Signature * | DetectEngineAppendSig (DetectEngineCtx *, const char *) |
| Parse and append a Signature into the Detection Engine Context signature list. More... | |
| Signature * | DetectFirewallRuleAppendNew (DetectEngineCtx *, const char *) |
| Parse and append a Signature into the Detection Engine Context signature list. More... | |
| SigMatch * | SCSigMatchAppendSMToList (DetectEngineCtx *, Signature *, uint16_t, SigMatchCtx *, int) |
| Append a SigMatch to the list type. More... | |
| void | SigMatchRemoveSMFromList (Signature *, SigMatch *, int) |
| int | SigMatchListSMBelongsTo (const Signature *, const SigMatch *) |
| int | DetectParseDupSigHashInit (DetectEngineCtx *) |
| Initializes the hash table that is used to cull duplicate sigs. More... | |
| void | DetectParseDupSigHashFree (DetectEngineCtx *) |
| Frees the hash table that is used to cull duplicate sigs. More... | |
| int | DetectEngineContentModifierBufferSetup (DetectEngineCtx *de_ctx, Signature *s, const char *arg, int sm_type, int sm_list, AppProto alproto) |
| bool | SCSigMatchSilentErrorEnabled (const DetectEngineCtx *de_ctx, uint16_t id) |
| bool | SigMatchStrictEnabled (const enum DetectKeywordId id) |
| const char * | DetectListToHumanString (int list) |
| const char * | DetectListToString (int list) |
| void | SigTableApplyStrictCommandLineOption (const char *str) |
| SigMatch * | DetectGetLastSM (const Signature *) |
| Returns the sm with the largest index (added latest) from this sig. More... | |
| SigMatch * | DetectGetLastSMFromMpmLists (const DetectEngineCtx *de_ctx, const Signature *s) |
| get the last SigMatch from lists that support MPM. More... | |
| SigMatch * | SCDetectGetLastSMFromLists (const Signature *s,...) |
| Returns the sm with the largest index (added latest) from the lists passed to us. More... | |
| SigMatch * | DetectGetLastSMByListPtr (const Signature *s, SigMatch *sm_list,...) |
| Returns the sm with the largest index (added last) from the list passed to us as a pointer. More... | |
| SigMatch * | DetectGetLastSMByListId (const Signature *s, int list_id,...) |
| Returns the sm with the largest index (added last) from the list passed to us as an id. More... | |
| const SigMatch * | SCDetectSignatureGetLastSMByType (const Signature *s, int list_id, uint16_t type) |
| Get the last SigMatch of keyword type in list list_id. More... | |
| const SigMatch * | SCSigMatchGetPrevByType (const SigMatch *sm, uint16_t type) |
| Get the previous SigMatch of keyword type before sm. More... | |
| const SigMatchCtx * | SCSigMatchGetCtx (const SigMatch *sm) |
| Get the keyword context of sm, as passed to SCSigMatchAppendSMToList() by the keyword's Setup callback. More... | |
| int WARN_UNUSED | SCDetectSignatureSetAppProto (Signature *s, AppProto alproto) |
| bool | SCDetectSetupSignatureIsNegated (const Signature *s) |
| Check if the keyword option being set up was negated. More... | |
| int WARN_UNUSED | DetectSignatureSetMultiAppProto (Signature *s, const AppProto *alprotos) |
| this function is used to set multiple possible app-layer protos More... | |
| DetectParseRegex * | DetectSetupPCRE2 (const char *parse_str, int opts) |
| bool | DetectSetupParseRegexesOpts (const char *parse_str, DetectParseRegex *parse_regex, int opts) |
| void | DetectSetupParseRegexes (const char *parse_str, DetectParseRegex *parse_regex) |
| void | DetectParseRegexAddToFreeList (DetectParseRegex *parse_regex) |
| add regex and/or study to at exit free list More... | |
| void | DetectParseFreeRegexes (void) |
| void | DetectParseFreeRegex (DetectParseRegex *r) |
| int | DetectParsePcreExec (DetectParseRegex *parse_regex, pcre2_match_data **match, const char *str, int start_offset, int options) |
| int | SC_Pcre2SubstringCopy (pcre2_match_data *match_data, uint32_t number, PCRE2_UCHAR *buffer, PCRE2_SIZE *bufflen) |
| int | SC_Pcre2SubstringGet (pcre2_match_data *match_data, uint32_t number, PCRE2_UCHAR **bufferptr, PCRE2_SIZE *bufflen) |
| void | DetectRegisterAppLayerHookLists (void) |
| register app hooks as generic lists More... | |
| void | DetectListSupportedProtocols (void) |
| const char * | ActionScopeToString (enum ActionScope s) |
| const char * | DetectFirewallAppGenericHookName (const uint8_t state, const uint8_t complete_state, const int direction) |
| Generic start/complete hook alias for an app progress state, in config form (hyphens), or NULL for intermediate states. More... | |
| void | DetectFirewallPolicyToString (const struct DetectFirewallPolicy *p, char *out, size_t out_size) |
| int | DetectFirewallInitDefaultPolicies (DetectEngineCtx *) |
| allocate and initialize to default values the policies table More... | |
| int | DetectFirewallLoadDefaultPolicies (DetectEngineCtx *) |
Definition in file detect-parse.h.
| typedef struct DetectEngineCtx_ DetectEngineCtx |
Definition at line 1 of file detect-parse.h.
| typedef struct DetectParseRegex DetectParseRegex |
Definition at line 1 of file detect-parse.h.
| typedef struct SigMatchCtx_ SigMatchCtx |
Definition at line 1 of file detect-parse.h.
| typedef struct SigMatchData_ SigMatchData |
Definition at line 1 of file detect-parse.h.
| typedef struct Signature_ Signature |
Definition at line 1 of file detect-parse.h.
| anonymous enum |
Flags to indicate if the Signature parsing must be done switching the source and dest (for ip addresses and ports) or otherwise as normal
| Enumerator | |
|---|---|
| SIG_DIREC_NORMAL | |
| SIG_DIREC_SWITCHED | |
Definition at line 41 of file detect-parse.h.
| anonymous enum |
Flags to indicate if are referencing the source of the Signature or the destination (for ip addresses and ports)
| Enumerator | |
|---|---|
| SIG_DIREC_SRC | |
| SIG_DIREC_DST | |
Definition at line 48 of file detect-parse.h.
| const char* ActionScopeToString | ( | enum ActionScope | s | ) |
Definition at line 4265 of file detect-parse.c.
References ACTION_SCOPE_AUTO, ACTION_SCOPE_FLOW, ACTION_SCOPE_HOOK, ACTION_SCOPE_PACKET, ACTION_SCOPE_TX, and DEBUG_VALIDATE_BUG_ON.
Referenced by DetectFirewallPolicyToString().

| Signature* DetectEngineAppendSig | ( | DetectEngineCtx * | de_ctx, |
| const char * | sigstr | ||
| ) |
Parse and append a Signature into the Detection Engine Context signature list.
If the signature is bidirectional it should append two signatures (with the addresses switched) into the list. Also handle duplicate signatures. In case of duplicate sigs, use the ones that have the latest revision. We use the sid and the msg to identify duplicate sigs. If 2 sigs have the same sid and gid, they are duplicates.
| de_ctx | Pointer to the Detection Engine Context. |
| sigstr | Pointer to a character string containing the signature to be parsed. |
| sig_file | Pointer to a character string containing the filename from which signature is read |
| lineno | Line number from where signature is read |
| Pointer | to the head Signature in the detection engine ctx sig_list on success; NULL on failure. |
In DetectEngineAppendSig(), the signatures are prepended and we always return the first one so if the signature is bidirectional, the returned sig will point through "next" ptr to the cloned signatures with the switched addresses
Definition at line 4045 of file detect-parse.c.
References de_ctx, and SigInit().

| int DetectEngineContentModifierBufferSetup | ( | DetectEngineCtx * | de_ctx, |
| Signature * | s, | ||
| const char * | arg, | ||
| int | sm_type, | ||
| int | sm_list, | ||
| AppProto | alproto | ||
| ) |
| arg | NULL or empty string |
Definition at line 183 of file detect-parse.c.
References Signature_::alproto, ALPROTO_UNKNOWN, DETECT_SM_LIST_NOTSET, Signature_::init_data, SignatureInitData_::list, name, SCLogError, and sigmatch_table.
Referenced by DetectHttpUriSetup().

| const char* DetectFirewallAppGenericHookName | ( | const uint8_t | state, |
| const uint8_t | complete_state, | ||
| const int | direction | ||
| ) |
Generic start/complete hook alias for an app progress state, in config form (hyphens), or NULL for intermediate states.
Definition at line 1253 of file detect-parse.c.
| int DetectFirewallInitDefaultPolicies | ( | DetectEngineCtx * | ) |
allocate and initialize to default values the policies table
Definition at line 4574 of file detect-parse.c.
References DetectFirewallPolicies::app_policies, HashTableInit(), and SCCalloc.

| int DetectFirewallLoadDefaultPolicies | ( | DetectEngineCtx * | ) |
Definition at line 4921 of file detect-parse.c.
References DetectEngineCtx_::config_prefix, de_ctx, and DetectEngineCtx_::fw_policies.
| void DetectFirewallPolicyToString | ( | const struct DetectFirewallPolicy * | p, |
| char * | out, | ||
| size_t | out_size | ||
| ) |
Definition at line 4283 of file detect-parse.c.
References Packet_::action, ACTION_ACCEPT, ACTION_ALERT, ACTION_DROP, ACTION_PASS, ACTION_REJECT_ANY, ACTION_REJECT_BOTH, ACTION_REJECT_DST, ACTION_SCOPE_FLOW, ActionScopeToString(), DEBUG_VALIDATE_BUG_ON, p, and strlcat().

| Signature* DetectFirewallRuleAppendNew | ( | DetectEngineCtx * | de_ctx, |
| const char * | sigstr | ||
| ) |
Parse and append a Signature into the Detection Engine Context signature list.
If the signature is bidirectional it should append two signatures (with the addresses switched) into the list. Also handle duplicate signatures. In case of duplicate sigs, use the ones that have the latest revision. We use the sid and the msg to identify duplicate sigs. If 2 sigs have the same sid and gid, they are duplicates.
| de_ctx | Pointer to the Detection Engine Context. |
| sigstr | Pointer to a character string containing the signature to be parsed. |
| sig_file | Pointer to a character string containing the filename from which signature is read |
| lineno | Line number from where signature is read |
| Pointer | to the head Signature in the detection engine ctx sig_list on success; NULL on failure. |
In DetectEngineAppendSig(), the signatures are prepended and we always return the first one so if the signature is bidirectional, the returned sig will point through "next" ptr to the cloned signatures with the switched addresses
Definition at line 3973 of file detect-parse.c.
Returns the sm with the largest index (added latest) from this sig.
| sm_last | Pointer to last sm |
Definition at line 796 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_MAX, SigMatch_::idx, Signature_::init_data, SignatureInitData_::smlists_tail, and SignatureInitDataBuffer_::tail.
Returns the sm with the largest index (added last) from the list passed to us as an id.
| list_id | id of the list to be searched |
| va_args | list of keyword types terminated by -1 |
| sm_last | to last sm. |
Definition at line 694 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_MAX, Signature_::init_data, and SignatureInitDataBuffer_::tail.
Referenced by SCDetectSignatureGetLastSMByType().

Returns the sm with the largest index (added last) from the list passed to us as a pointer.
| sm_list | pointer to the SigMatch we should look before |
| va_args | list of keyword types terminated by -1 |
| sm_last | to last sm. |
Definition at line 662 of file detect-parse.c.
Referenced by DetectGetLastSMFromMpmLists().

| SigMatch* DetectGetLastSMFromMpmLists | ( | const DetectEngineCtx * | de_ctx, |
| const Signature * | s | ||
| ) |
get the last SigMatch from lists that support MPM.
Definition at line 563 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, de_ctx, DETECT_CONTENT, DETECT_SM_LIST_MAX, DetectEngineBufferTypeSupportsMpmGetById(), DetectGetLastSMByListPtr(), SignatureInitDataBuffer_::id, SigMatch_::idx, Signature_::init_data, SignatureInitData_::smlists_tail, and SignatureInitDataBuffer_::tail.

| void DetectListSupportedProtocols | ( | void | ) |
Definition at line 1663 of file detect-parse.c.
References AppProtoDetectListNames(), and DetectEngineProtoList().
Referenced by ListRuleProtocols().


| const char* DetectListToHumanString | ( | int | list | ) |
Definition at line 149 of file detect-parse.c.
Referenced by DumpPatterns().

| const char* DetectListToString | ( | int | list | ) |
Definition at line 167 of file detect-parse.c.
| void DetectParseDupSigHashFree | ( | DetectEngineCtx * | de_ctx | ) |
Frees the hash table that is used to cull duplicate sigs.
| de_ctx | Pointer to the detection engine context that holds this table. |
Definition at line 3790 of file detect-parse.c.
References de_ctx, DetectEngineCtx_::dup_sig_hash_table, and HashListTableFree().
Referenced by DetectEngineCtxFree().


| int DetectParseDupSigHashInit | ( | DetectEngineCtx * | de_ctx | ) |
Initializes the hash table that is used to cull duplicate sigs.
| de_ctx | Pointer to the detection engine context. |
| 0 | On success. |
| -1 | On failure. |
Definition at line 3773 of file detect-parse.c.
References de_ctx, DetectEngineCtx_::dup_sig_hash_table, and HashListTableInit().

| void DetectParseFreeRegex | ( | DetectParseRegex * | r | ) |
Definition at line 4109 of file detect-parse.c.
References DetectParseRegex::context, and DetectParseRegex::regex.
| void DetectParseFreeRegexes | ( | void | ) |
Definition at line 4119 of file detect-parse.c.
Referenced by GlobalsDestroy().

| int DetectParsePcreExec | ( | DetectParseRegex * | parse_regex, |
| pcre2_match_data ** | match, | ||
| const char * | str, | ||
| int | start_offset, | ||
| int | options | ||
| ) |
Definition at line 4099 of file detect-parse.c.
| void DetectParseRegexAddToFreeList | ( | DetectParseRegex * | parse_regex | ) |
add regex and/or study to at exit free list
Definition at line 4135 of file detect-parse.c.
References FatalError, DetectParseRegex::next, DetectParseRegex::regex, and SCCalloc.
Referenced by DetectSetupParseRegexesOpts().

| void DetectRegisterAppLayerHookLists | ( | void | ) |
register app hooks as generic lists
Register each hook in each app protocol as: <alproto>:<hook name>:generic These lists can be used by lua scripts to hook into.
Definition at line 1271 of file detect-parse.c.
References ALPROTO_FAILED, AppLayerParserGetMaxSubState(), AppLayerParserGetSubStateCompletion(), AppLayerParserGetSubStateName(), AppLayerParserGetSubStateProgressName(), AppLayerParserSupportsSubStates(), AppProtoToStringRaw(), BUG_ON, DetectAppLayerInspectEngineRegisterSubState(), DetectEngineInspectGenericList(), g_alproto_max, SCLogDebug, SIG_FLAG_TOCLIENT, and SIG_FLAG_TOSERVER.
Referenced by SigTableSetup().


| void DetectSetupParseRegexes | ( | const char * | parse_str, |
| DetectParseRegex * | parse_regex | ||
| ) |
Definition at line 4225 of file detect-parse.c.
References DetectSetupParseRegexesOpts(), and FatalError.

| bool DetectSetupParseRegexesOpts | ( | const char * | parse_str, |
| DetectParseRegex * | parse_regex, | ||
| int | opts | ||
| ) |
Definition at line 4146 of file detect-parse.c.
References DetectParseRegex::context, DetectParseRegexAddToFreeList(), DetectParseRegex::regex, SC_MATCH_LIMIT_DEFAULT, SC_MATCH_LIMIT_RECURSION_DEFAULT, and SCLogError.
Referenced by DetectSetupParseRegexes().


| DetectParseRegex* DetectSetupPCRE2 | ( | const char * | parse_str, |
| int | opts | ||
| ) |
Definition at line 4175 of file detect-parse.c.
References DetectParseRegex::next, DetectParseRegex::regex, SCCalloc, SCFree, and SCLogError.
| int WARN_UNUSED DetectSignatureSetMultiAppProto | ( | Signature * | s, |
| const AppProto * | alprotos | ||
| ) |
this function is used to set multiple possible app-layer protos
into the current signature (for example ja4 for both tls and quic)
| s | pointer to the Current Signature |
| alprotos | an array terminated by ALPROTO_UNKNOWN |
| 0 | on Success |
| -1 | on Failure |
Definition at line 2592 of file detect-parse.c.
References Signature_::alproto, ALPROTO_UNKNOWN, SignatureInitData_::alprotos, Signature_::init_data, SCDetectSignatureSetAppProto(), and SIG_ALPROTO_MAX.

| int SC_Pcre2SubstringCopy | ( | pcre2_match_data * | match_data, |
| uint32_t | number, | ||
| PCRE2_UCHAR * | buffer, | ||
| PCRE2_SIZE * | bufflen | ||
| ) |
Definition at line 4201 of file detect-parse.c.
| int SC_Pcre2SubstringGet | ( | pcre2_match_data * | match_data, |
| uint32_t | number, | ||
| PCRE2_UCHAR ** | bufferptr, | ||
| PCRE2_SIZE * | bufflen | ||
| ) |
Definition at line 4213 of file detect-parse.c.
Returns the sm with the largest index (added latest) from the lists passed to us.
| Pointer | to Last sm. |
Definition at line 600 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, DETECT_SM_LIST_NOTSET, SignatureInitDataBuffer_::id, Signature_::init_data, SignatureInitData_::list, and SCLogDebug.
| bool SCDetectSetupSignatureIsNegated | ( | const Signature * | s | ) |
Check if the keyword option being set up was negated.
Only set for keywords registered with the SIGMATCH_HANDLE_NEGATION flag, in which case the leading '!' is stripped from the option value before it is passed to the keyword's Setup callback.
Note: Must only be called from the Setup callback of the keyword currently being setup.
| s | signature being set up |
| true | if the option was prefixed with '!' |
Definition at line 2684 of file detect-parse.c.
References DEBUG_VALIDATE_BUG_ON, Signature_::init_data, and SignatureInitData_::negated.
| const SigMatch* SCDetectSignatureGetLastSMByType | ( | const Signature * | s, |
| int | list_id, | ||
| uint16_t | type | ||
| ) |
Get the last SigMatch of keyword type in list list_id.
Lets a keyword Setup callback inspect earlier instances of a keyword in the signature being set up, together with SCSigMatchGetPrevByType() and SCSigMatchGetCtx(), without depending on the SigMatch layout.
Only the static lists from DetectSigmatchListEnum are supported. A dynamic buffer list can have several instances in a signature, each with its own SigMatch chain, so there is no single list to walk.
| s | signature being set up |
| list_id | static list to search, e.g. DETECT_SM_LIST_MATCH |
| type | keyword id, as returned by SCDetectHelperKeywordRegister() |
| sm | last SigMatch of type in the list, or NULL if there is none or list_id is not a static list |
Definition at line 758 of file detect-parse.c.
References DEBUG_VALIDATE_BUG_ON, DETECT_SM_LIST_MAX, DetectGetLastSMByListId(), and type.

| int WARN_UNUSED SCDetectSignatureSetAppProto | ( | Signature * | s, |
| AppProto | alproto | ||
| ) |
Definition at line 2693 of file detect-parse.c.
Referenced by DetectSignatureSetMultiAppProto().

| SigMatch* SCSigMatchAppendSMToList | ( | DetectEngineCtx * | de_ctx, |
| Signature * | s, | ||
| uint16_t | type, | ||
| SigMatchCtx * | ctx, | ||
| const int | list | ||
| ) |
Append a SigMatch to the list type.
| s | Signature. |
| new | The sig match to append. |
| list | The list to append to. |
Definition at line 424 of file detect-parse.c.
Referenced by DetectContentSetup(), and DetectFlowvarPostMatchSetup().

| const SigMatchCtx* SCSigMatchGetCtx | ( | const SigMatch * | sm | ) |
Get the keyword context of sm, as passed to SCSigMatchAppendSMToList() by the keyword's Setup callback.
| sm | SigMatch, must not be NULL |
Definition at line 786 of file detect-parse.c.
References SigMatch_::ctx.
Get the previous SigMatch of keyword type before sm.
| sm | SigMatch to search before, must not be NULL |
| type | keyword id |
| sm | previous SigMatch of type in the same list, or NULL if there is none |
Definition at line 775 of file detect-parse.c.
| bool SCSigMatchSilentErrorEnabled | ( | const DetectEngineCtx * | de_ctx, |
| uint16_t | id | ||
| ) |
Definition at line 367 of file detect-parse.c.
References de_ctx, and DetectEngineCtx_::sm_types_silent_error.
| Signature* SigAlloc | ( | void | ) |
Definition at line 2314 of file detect-parse.c.
References SignatureInitData_::buffers, SignatureInitData_::buffers_size, DETECT_SM_LIST_NOTSET, Signature_::init_data, SignatureInitData_::is_rule_state_dependant, SignatureInitData_::list, SignatureInitData_::mpm_sm_list, Signature_::prio, SignatureInitData_::rule_state_dependant_sids_idx, SCCalloc, SCFree, and unlikely.
| void SigFree | ( | DetectEngineCtx * | de_ctx, |
| Signature * | s | ||
| ) |
Definition at line 2434 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitData_::cidr_dst, SignatureInitData_::cidr_src, DetectEngineTransforms::cnt, de_ctx, DETECT_SM_LIST_MAX, SigTableElmt_::Free, SignatureInitDataBuffer_::head, Signature_::init_data, IPOnlyCIDRListFree(), SigMatch_::next, TransformData_::options, SCFree, sigmatch_table, SigMatchFree(), SignatureInitData_::smlists, TransformData_::transform, DetectEngineTransforms::transforms, and SignatureInitData_::transforms.

| Signature* SigInit | ( | DetectEngineCtx * | de_ctx, |
| const char * | sigstr | ||
| ) |
Parses a signature and adds it to the Detection Engine Context.
| de_ctx | Pointer to the Detection Engine Context. |
| sigstr | Pointer to a character string containing the signature to be parsed. |
| Pointer | to the Signature instance on success; NULL on failure. |
Definition at line 3698 of file detect-parse.c.
Referenced by DetectEngineAppendSig().

| SigMatchData* SigMatchList2DataArray | ( | SigMatch * | head | ) |
convert SigMatch list to SigMatchData array
Definition at line 2829 of file detect-parse.c.
References len.
Definition at line 850 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitDataBuffer_::head, SignatureInitDataBuffer_::id, Signature_::init_data, and SigMatch_::next.
Definition at line 523 of file detect-parse.c.
References Signature_::init_data, SigMatch_::next, SigMatch_::prev, SignatureInitData_::smlists, and SignatureInitData_::smlists_tail.
Referenced by DetectIPProtoRemoveAllSMs().

| bool SigMatchStrictEnabled | ( | const enum DetectKeywordId | id | ) |
Definition at line 372 of file detect-parse.c.
References DETECT_TBLSIZE, flags, SIGMATCH_STRICT_PARSING, and sigmatch_table.
| int SignatureInitDataBufferCheckExpand | ( | Signature * | s | ) |
check if buffers array still has space left, expand if not
Definition at line 2294 of file detect-parse.c.
References SignatureInitData_::buffer_index, SignatureInitData_::buffers, SignatureInitData_::buffers_size, Signature_::init_data, and SCRealloc.
Referenced by DetectBufferGetActiveList().

| void SigParseRegisterTests | ( | void | ) |
Definition at line 6837 of file detect-parse.c.
References DetectParseRegisterTests(), and UtRegisterTest().
Referenced by SigRegisterTests().


| void SigTableApplyStrictCommandLineOption | ( | const char * | str | ) |
Definition at line 380 of file detect-parse.c.
References DETECT_TBLSIZE, FatalError, SigTableElmt_::flags, SCStrdup, SIGMATCH_STRICT_PARSING, sigmatch_table, and str.