summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpascoe <pascoe@openbsd.org>2005-05-24 22:14:22 +0000
committerpascoe <pascoe@openbsd.org>2005-05-24 22:14:22 +0000
commita7d349af5ccf764de9fa6a05bdf1868665624bfd (patch)
tree4c4ffb19db5a975b074678426cfb784fb281963e
parent- create the Entries.Static file with 0644 permissions instead of 0400. (diff)
downloadwireguard-openbsd-a7d349af5ccf764de9fa6a05bdf1868665624bfd.tar.xz
wireguard-openbsd-a7d349af5ccf764de9fa6a05bdf1868665624bfd.zip
Identify states that will not be synchronised in pfctl -vvss output.
ok mcbride@ henning@
-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)" : ""));
}
}