summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-05-24 22:14:23 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-05-24 22:14:23 +0000
commit54848afd8dd147aceb9a182ebed245b5ff95492f (patch)
treeb7b1a35e52c22c24f81672af2fea3c43b008af1c /sbin
parenta441de6219cedd13976ef8817044238e835ffa35 (diff)
Identify states that will not be synchronised in pfctl -vvss output.
ok mcbride@ henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pf_print_state.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index a41e9e5f887..21670992eec 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.40 2004/12/10 22:13:26 henning Exp $ */
+/* $OpenBSD: pf_print_state.c,v 1.41 2005/05/24 22:14:22 pascoe Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -287,8 +287,9 @@ print_state(struct pf_state *s, int opts)
printf("\n");
}
if (opts & PF_OPT_VERBOSE2) {
- printf(" id: %016llx creatorid: %08x\n",
- betoh64(s->id), ntohl(s->creatorid));
+ printf(" id: %016llx creatorid: %08x%s\n",
+ betoh64(s->id), ntohl(s->creatorid),
+ (s->sync_flags & PFSTATE_NOSYNC ? " (no-sync)" : ""));
}
}