Go to the documentation of this file.
24 #ifndef __UTIL_CLASSIFICATION_CONFIG_H__
25 #define __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.
FILE * SCClassConfGenerateInValidDummyClassConfigFD02(void)
Creates a dummy classification file, with some valid Classtypes and a couple of invalid Classtypes,...
void SCClassConfRegisterTests(void)
This function registers unit tests for Classification Config API.
main detection engine ctx
void SCClassConfInit(void)
FILE * SCClassConfGenerateValidDummyClassConfigFD01(void)
Creates a dummy classification file, with all valid Classtypes, for testing purposes.
Container for a Classtype from the Classification.config file.
void SCClassConfDeinit(void)
SCClassConfClasstype * SCClassConfGetClasstype(const char *, DetectEngineCtx *)
Gets the classtype from the corresponding hash table stored in the Detection Engine Context's class c...
bool SCClassConfLoadClassficationConfigFile(DetectEngineCtx *, FILE *fd)
Loads the Classtype info from the classification.config file.
FILE * SCClassConfGenerateInValidDummyClassConfigFD03(void)
Creates a dummy classification file, with all invalid Classtypes, for testing purposes.
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,...