Go to the documentation of this file.
26 #ifndef SURICATA_REPUTATION_H
27 #define SURICATA_REPUTATION_H
32 #define SREP_MAX_CATS 60
33 #define SREP_MAX_VAL 127
uint8_t rep[SREP_MAX_CATS]
int SRepLoadCatFileFromFD(FILE *fp)
int8_t SRepCIDRGetIPRepDst(SRepCIDRTree *cidr_ctx, Packet *p, uint8_t cat, uint32_t version)
Structure for the radix tree.
main detection engine ctx
int8_t SRepCIDRGetIPRepSrc(SRepCIDRTree *cidr_ctx, Packet *p, uint8_t cat, uint32_t version)
void SRepResetVersion(void)
void SRepFreeHostData(Host *h)
struct SRepCIDRTree_ SRepCIDRTree
int SRepInit(struct DetectEngineCtx_ *de_ctx)
init reputation
uint8_t SRepCatGetByShortname(char *shortname)
void SRepDestroy(struct DetectEngineCtx_ *de_ctx)
void SRepReloadComplete(void)
Increment effective reputation version after a rule/reputation reload is complete.
struct SReputation_ SReputation
void SCReputationRegisterTests(void)
int SRepHostTimedOut(Host *)
Check if a Host is timed out wrt ip rep, meaning a new version is in place.
SCRadixTree * srepIPV4_tree[SREP_MAX_CATS]
int SRepLoadFileFromFD(SRepCIDRTree *cidr_ctx, FILE *fp)
SCRadixTree * srepIPV6_tree[SREP_MAX_CATS]