-/* $OpenBSD: pf.c,v 1.1072 2018/07/12 14:28:07 sashan Exp $ */
+/* $OpenBSD: pf.c,v 1.1073 2018/07/22 09:09:18 sf Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
/* purge other expired types every PFTM_INTERVAL seconds */
if (++(*nloops) >= pf_default_rule.timeout[PFTM_INTERVAL]) {
- pf_purge_expired_src_nodes(0);
+ pf_purge_expired_src_nodes();
pf_purge_expired_rules();
}
PF_UNLOCK();
-/* $OpenBSD: pf_ioctl.c,v 1.335 2018/07/10 09:28:27 henning Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.336 2018/07/22 09:09:18 sf Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
u_int32_t old_rcount;
/* Make sure any expired rules get removed from active rules first. */
- pf_purge_expired_rules(1);
+ pf_purge_expired_rules();
rs = pf_find_ruleset(anchor);
if (rs == NULL || !rs->rules.inactive.open ||
pf_src_tree_remove_state(state);
RB_FOREACH(n, pf_src_tree, &tree_src_tracking)
n->expire = 1;
- pf_purge_expired_src_nodes(1);
+ pf_purge_expired_src_nodes();
PF_UNLOCK();
break;
}
}
if (killed > 0)
- pf_purge_expired_src_nodes(1);
+ pf_purge_expired_src_nodes();
psnk->psnk_killed = killed;
PF_UNLOCK();
-/* $OpenBSD: pfvar.h,v 1.481 2018/07/11 09:05:51 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.482 2018/07/22 09:09:18 sf Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
extern void pf_tbladdr_remove(struct pf_addr_wrap *);
extern void pf_tbladdr_copyout(struct pf_addr_wrap *);
extern void pf_calc_skip_steps(struct pf_rulequeue *);
-extern void pf_purge_expired_src_nodes();
+extern void pf_purge_expired_src_nodes(void);
extern void pf_purge_expired_states(u_int32_t);
-extern void pf_purge_expired_rules();
+extern void pf_purge_expired_rules(void);
extern void pf_remove_state(struct pf_state *);
extern void pf_remove_divert_state(struct pf_state_key *);
extern void pf_free_state(struct pf_state *);