diff options
author | 2001-09-02 15:15:31 +0000 | |
---|---|---|
committer | 2001-09-02 15:15:31 +0000 | |
commit | 78baf774a8988fbcfec74ee68cd487de0c8f1925 (patch) | |
tree | afef26f02dae4aee452bdaf75f9a18b24014839c | |
parent | Oops. (diff) | |
download | wireguard-openbsd-78baf774a8988fbcfec74ee68cd487de0c8f1925.tar.xz wireguard-openbsd-78baf774a8988fbcfec74ee68cd487de0c8f1925.zip |
Print rule numbers zero-based. Noted by primus@gblx.net.
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 13cf89cd623..c852395394c 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.45 2001/08/25 21:54:26 frantzen Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.46 2001/09/02 15:15:31 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -464,7 +464,7 @@ print_state(struct pf_state *s) void print_rule(struct pf_rule *r) { - printf("@%d ", r->nr + 1); + printf("@%d ", r->nr); if (r->action == PF_PASS) printf("pass "); else if (r->action == PF_DROP) { |