diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2003-04-09 15:38:47 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2003-04-09 15:38:47 +0000 |
commit | 667bade43c4242a04469899051e1fb0318305819 (patch) | |
tree | 7e6507f2a5cd877ead19120bc97bc11dc0619a9f /sbin | |
parent | dfa401103b8414079482bd681a2c02ebaafd428b (diff) |
on "pfctl -vvss", print the anchor rule number when there is one.
ok dhartmei@ henning@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index 6c16f06705f..3ed6df2ded2 100644 --- a/sbin/pfctl/pf_print_state.c +++ b/sbin/pfctl/pf_print_state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_print_state.c,v 1.24 2003/04/03 15:52:24 cedric Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.25 2003/04/09 15:38:46 cedric Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -240,6 +240,8 @@ print_state(struct pf_state *s, int opts) s->expire /= 60; printf(", expires in %.2u:%.2u:%.2u", s->expire, min, sec); printf(", %u pkts, %u bytes", s->packets, s->bytes); + if (s->anchor.nr != -1) + printf(", anchor %u", s->anchor.nr); if (s->rule.nr != -1) printf(", rule %u", s->rule.nr); printf("\n"); |