Go to the documentation of this file.
24 #ifndef SURICATA_UTIL_CLASSIFICATION_CONFIG_H
25 #define SURICATA_UTIL_CLASSIFICATION_CONFIG_H
27 #define CLASSTYPE_NAME_MAX_LEN 64
28 #define CLASSTYPE_DESC_MAX_LEN 512
void SCClassConfDeInitContext(DetectEngineCtx *)
Releases resources used by the Classification Config API.
void SCClassConfDeinit(DetectEngineCtx *de_ctx)
void SCClassConfRegisterTests(void)
This function registers unit tests for Classification Config API.
main detection engine ctx
FILE * SCClassConfGenerateInvalidDummyClassConfigFD02(void)
Creates a dummy classification file, with some valid Classtypes and a couple of invalid Classtypes,...
FILE * SCClassConfGenerateValidDummyClassConfigFD01(void)
Creates a dummy classification file, with all valid Classtypes, for testing purposes.
Container for a Classtype from the Classification.config file.
FILE * SCClassConfGenerateInvalidDummyClassConfigFD03(void)
Creates a dummy classification file, with all invalid Classtypes, for testing purposes.
SCClassConfClasstype * SCClassConfGetClasstype(const char *, DetectEngineCtx *)
Gets the classtype from the corresponding hash table stored in the Detection Engine Context's class c...
bool SCClassConfLoadClassificationConfigFile(DetectEngineCtx *, FILE *fd)
Loads the Classtype info from the classification.config file.
void SCClassConfInit(DetectEngineCtx *de_ctx)
struct SCClassConfClasstype_ SCClassConfClasstype
Container for a Classtype from the Classification.config file.
int SCClassConfAddClasstype(DetectEngineCtx *de_ctx, char *rawstr, uint16_t index)
Parses a line from the classification file and adds it to Classtype hash table in DetectEngineCtx,...