14 lines
353 B
C
14 lines
353 B
C
|
#include <stdint.h>
|
||
|
|
||
|
#ifndef _BLACKLIST_H
|
||
|
#define _BLACKLIST_H
|
||
|
|
||
|
int blacklist_is_allowed(uint32_t s_addr);
|
||
|
void blacklist_prefix(char *ip, int prefix_len);
|
||
|
void whitelist_prefix(char *ip, int prefix_len);
|
||
|
int blacklist_init_from_files(char *whitelist, char*blacklist);
|
||
|
uint64_t blacklist_count_allowed();
|
||
|
uint64_t blacklist_count_not_allowed();
|
||
|
|
||
|
#endif
|