-/* $OpenBSD: pf_ioctl.c,v 1.312 2017/05/15 12:26:00 mpi Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.313 2017/05/30 19:37:54 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
case DIOCSETDEBUG:
case DIOCGETSTATES:
case DIOCGETTIMEOUT:
- case DIOCCLRRULECTRS:
case DIOCGETLIMIT:
case DIOCGETRULESETS:
case DIOCGETRULESET:
break;
}
- case DIOCCLRRULECTRS: {
- /* obsoleted by DIOCGETRULE with action=PF_GET_CLR_CNTR */
- struct pf_ruleset *ruleset = &pf_main_ruleset;
- struct pf_rule *rule;
-
- TAILQ_FOREACH(rule,
- ruleset->rules.active.ptr, entries) {
- rule->evaluations = 0;
- rule->packets[0] = rule->packets[1] = 0;
- rule->bytes[0] = rule->bytes[1] = 0;
- }
- break;
- }
-
case DIOCGETRULESETS: {
struct pfioc_ruleset *pr = (struct pfioc_ruleset *)addr;
struct pf_ruleset *ruleset;
-/* $OpenBSD: pfvar.h,v 1.455 2017/05/30 08:10:01 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.456 2017/05/30 19:37:54 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
#define DIOCSETTIMEOUT _IOWR('D', 29, struct pfioc_tm)
#define DIOCGETTIMEOUT _IOWR('D', 30, struct pfioc_tm)
#define DIOCADDSTATE _IOWR('D', 37, struct pfioc_state)
-#define DIOCCLRRULECTRS _IO ('D', 38)
+/* XXX cut 38 */
#define DIOCGETLIMIT _IOWR('D', 39, struct pfioc_limit)
#define DIOCSETLIMIT _IOWR('D', 40, struct pfioc_limit)
#define DIOCKILLSTATES _IOWR('D', 41, struct pfioc_state_kill)