@ -40,7 +40,6 @@ struct {
};
enum { stop = 0, run, reconfig, logrotate, test } state = run;
f2b_jail_t *jails = NULL;
void signal_handler(int signum) {
switch (signum) {
@ -13,6 +13,8 @@
#define DEFAULT_EXPIRETIME 14400 /* in seconds, 4 hours */
#define DEFAULT_MAXRETRY 5
static f2b_jail_t defaults = {
.enabled = DEFAULT_STATE,
.bantime = DEFAULT_BANTIME,
@ -39,6 +39,8 @@ typedef struct f2b_jail_t {
f2b_ipaddr_t *ipaddrs;
} f2b_jail_t;
extern f2b_jail_t *jails;
void f2b_jail_parse_compound_value(const char *value, char *name, char *init);
f2b_jail_t *f2b_jail_create (f2b_config_section_t *section);