Changeset View
Changeset View
Standalone View
Standalone View
contrib/blacklist/include/blacklist.h
Show All 37 Lines | |||||
void blacklist_close(struct blacklist *); | void blacklist_close(struct blacklist *); | ||||
int blacklist(int, int, const char *); | int blacklist(int, int, const char *); | ||||
int blacklist_r(struct blacklist *, int, int, const char *); | int blacklist_r(struct blacklist *, int, int, const char *); | ||||
int blacklist_sa(int, int, const struct sockaddr *, socklen_t, const char *); | int blacklist_sa(int, int, const struct sockaddr *, socklen_t, const char *); | ||||
int blacklist_sa_r(struct blacklist *, int, int, | int blacklist_sa_r(struct blacklist *, int, int, | ||||
const struct sockaddr *, socklen_t, const char *); | const struct sockaddr *, socklen_t, const char *); | ||||
__END_DECLS | __END_DECLS | ||||
/* action values for user applications */ | |||||
#define BLACKLIST_API_ENUM 1 | |||||
enum { | |||||
BLACKLIST_AUTH_OK = 0, | |||||
BLACKLIST_AUTH_FAIL, | |||||
BLACKLIST_ABUSIVE_BEHAVIOR, | |||||
BLACKLIST_BAD_USER | |||||
}; | |||||
#endif /* _BLACKLIST_H */ | #endif /* _BLACKLIST_H */ |