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