diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-08-19 19:03:59 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-08-19 19:03:59 +0000 |
commit | 732d8c04410f10e0bf97908be59eb9e0e406cbaa (patch) | |
tree | d6f7a0dad241d202c87e3b6cf814b6f262c4088f /sbin/pfctl/pfctl.c | |
parent | afbbad451be11366260491de1a7ebc5f6375aaf5 (diff) |
Add per-rule byte counter, so mickey can do accounting. We're counting the
data part (without IP and TCP/UDP/ICMP headers), like the state counter does.
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r-- | sbin/pfctl/pfctl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 9d8ce000933..2b0c7e680df 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.34 2001/08/19 18:20:46 dhartmei Exp $ */ +/* $OpenBSD: pfctl.c,v 1.35 2001/08/19 19:03:58 dhartmei Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -186,8 +186,9 @@ pfctl_show_rules(int dev, int opts) err(1, "DIOCGETRULE"); print_rule(&pr.rule); if (opts & PF_OPT_VERBOSE) - printf("[ Evaluations: %-10llu Packets: %-10llu ]\n\n", - pr.rule.evaluations, pr.rule.packets); + printf("[ Evaluations: %-10llu Packets: %-10llu " + "Bytes: %-10llu ]\n\n", pr.rule.evaluations, + pr.rule.packets, pr.rule.bytes); } return (0); } |