From 8d9424625f20b649b2e31180de823f40b3c70fdc Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 9 Feb 2007 11:28:33 +0000 Subject: pfctl_clear_rule_counters() is not needed any more --- sbin/pfctl/pfctl.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sbin/pfctl/pfctl.c') 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 *); @@ -1871,16 +1870,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) { -- cgit v1.2.3