Go to the documentation of this file.
26 #ifndef SURICATA_REPUTATION_H
27 #define SURICATA_REPUTATION_H
33 #define SREP_MAX_CATS 60
34 #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)
SCRadix6Tree srep_ipv6_tree[SREP_MAX_CATS]
main detection engine ctx
int8_t SRepCIDRGetIPRepSrc(SRepCIDRTree *cidr_ctx, Packet *p, uint8_t cat, uint32_t version)
void SRepResetVersion(void)
Structure for the radix tree.
void SRepFreeHostData(Host *h)
struct SRepCIDRTree_ SRepCIDRTree
SCRadix4Tree srep_ipv4_tree[SREP_MAX_CATS]
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
Structure for the radix tree.
void SCReputationRegisterTests(void)
int SRepHostTimedOut(Host *)
Check if a Host is timed out wrt ip rep, meaning a new version is in place.
int SRepLoadFileFromFD(SRepCIDRTree *cidr_ctx, FILE *fp)