summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-02-09 11:28:33 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-02-09 11:28:33 +0000
commit8d9424625f20b649b2e31180de823f40b3c70fdc (patch)
tree60de534e58ffa3377bc303adc349e35ab787bfd1 /sbin/pfctl/pfctl.c
parent4b969dcdc045bb6b6fab7150ed387aab53075df9 (diff)
pfctl_clear_rule_counters() is not needed any more
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r--sbin/pfctl/pfctl.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index f5ee1798a9d..32e6bd4786b 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.259 2007/02/09 11:25:27 henning Exp $ */
+/* $OpenBSD: pfctl.c,v 1.260 2007/02/09 11:28:32 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -86,7 +86,6 @@ int pfctl_show_status(int, int);
int pfctl_show_timeouts(int, int);
int pfctl_show_limits(int, int);
void pfctl_debug(int, u_int32_t, int);
-int pfctl_clear_rule_counters(int, int);
int pfctl_test_altqsupport(int, int);
int pfctl_show_anchors(int, int, char *);
int pfctl_ruleset_trans(struct pfctl *, char *, struct pf_anchor *);
@@ -1872,16 +1871,6 @@ pfctl_debug(int dev, u_int32_t level, int opts)
}
int
-pfctl_clear_rule_counters(int dev, int opts)
-{
- if (ioctl(dev, DIOCCLRRULECTRS))
- err(1, "DIOCCLRRULECTRS");
- if ((opts & PF_OPT_QUIET) == 0)
- fprintf(stderr, "pf: rule counters cleared\n");
- return (0);
-}
-
-int
pfctl_test_altqsupport(int dev, int opts)
{
struct pfioc_altq pa;