18#ifndef SURICATA_DATASETS_H
19#define SURICATA_DATASETS_H
38#define DATASET_TYPE_NOTSET 0
46#define DATASET_NAME_MAX_LEN 63
77 const DataRepType *rep);
Dataset * DatasetSearchByName(const char *name)
int DatasetLookupSerialized(Dataset *set, const char *string)
add serialized data to set
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
int DatasetRemoveSerialized(Dataset *set, const char *string)
remove serialized data from set
void DatasetPostReloadCleanup(void)
DataRepResultType DatasetLookupwRep(Dataset *set, const uint8_t *data, const uint32_t data_len, const DataRepType *rep)
Dataset * DatasetAlloc(const char *name)
Dataset * DatasetFind(const char *name, enum DatasetTypes type)
look for set by name without creating it
#define DATASET_NAME_MAX_LEN
int DatasetAppendSet(Dataset *set)
void DatasetGetDefaultMemcap(uint64_t *memcap, uint32_t *hashsize)
int DatasetAdd(Dataset *set, const uint8_t *data, const uint32_t data_len)
void DatasetsDestroy(void)
enum DatasetTypes DatasetGetTypeFromString(const char *s)
int DatasetGetOrCreate(const char *name, enum DatasetTypes type, const char *save, const char *load, uint64_t *memcap, uint32_t *hashsize, Dataset **ret_set)
int DatasetRemove(Dataset *set, const uint8_t *data, const uint32_t data_len)
int DatasetParseIpv6String(Dataset *set, const char *line, struct in6_addr *in6)
Dataset * DatasetGet(const char *name, enum DatasetTypes type, const char *save, const char *load, uint64_t memcap, uint32_t hashsize)
char name[DATASET_NAME_MAX_LEN+1]