Go to the documentation of this file.
18 #ifndef SURICATA_DATASETS_H
19 #define SURICATA_DATASETS_H
31 #define DATASET_TYPE_NOTSET 0
39 #define DATASET_NAME_MAX_LEN 63
Dataset * DatasetFind(const char *name, enum DatasetTypes type)
look for set by name without creating it
int DatasetRemoveSerialized(Dataset *set, const char *string)
remove serialized data from set
char name[DATASET_NAME_MAX_LEN+1]
int DatasetAddSerialized(Dataset *set, const char *string)
add serialized data to set
int DatasetLookup(Dataset *set, const uint8_t *data, const uint32_t data_len)
see if data is part of the set
DataRepResultType DatasetLookupwRep(Dataset *set, const uint8_t *data, const uint32_t data_len, const DataRepType *rep)
int DatasetLookupSerialized(Dataset *set, const char *string)
add serialized data to set
void DatasetPostReloadCleanup(void)
void DatasetsDestroy(void)
int DatasetRemove(Dataset *set, const uint8_t *data, const uint32_t data_len)
#define DATASET_NAME_MAX_LEN
int DatasetAdd(Dataset *set, const uint8_t *data, const uint32_t data_len)
Dataset * DatasetGet(const char *name, enum DatasetTypes type, const char *save, const char *load, uint64_t memcap, uint32_t hashsize)
enum DatasetTypes DatasetGetTypeFromString(const char *s)