diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-18 16:09:26 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-18 16:09:26 +0000 |
commit | e1cd28a6ce4e8c7a419ec08890f63ae9c4cc5e9f (patch) | |
tree | e631e92324cffa2c024bd4a1991f7376d206b77d | |
parent | a1d302246d13030257671ec81852aefaf05c410f (diff) |
rule.nr USHRT_MAX -> -1, to detect states whose creating rules are
already gone.
-rw-r--r-- | sbin/pfctl/pf_print_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c index be1c930d10b..6f43cc3cf74 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.13 2002/11/30 10:07:51 mickey Exp $ */ +/* $OpenBSD: pf_print_state.c,v 1.14 2002/12/18 16:09:25 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -219,7 +219,7 @@ 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->rule.nr != USHRT_MAX) + if (s->rule.nr != -1) printf(", rule %u", s->rule.nr); printf("\n"); } |