summaryrefslogtreecommitdiffstats
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-27 21:07:37 +0000
committerbapt <bapt@FreeBSD.org>2013-10-27 21:07:37 +0000
commit5449e20fb6562d1e14526a10b8fe9cd8b0ecd846 (patch)
treebef56ebe19b24722a34f73297aa9c32fbcbd0a87 /sbin/pfctl
parent9117c60cf73e7ee93784242b506b7b8cbcdc2cbe (diff)
downloadFreeBSD-src-5449e20fb6562d1e14526a10b8fe9cd8b0ecd846.zip
FreeBSD-src-5449e20fb6562d1e14526a10b8fe9cd8b0ecd846.tar.gz
Import pf_print_state.c 1.54 from OpenBSD
Original log: pfctl -ss printed state levels for ICMPv6. Disable this the same way it has already been done for ICMPv4. Difference with OpenBSD: - WITHOUT_INET6 safe Obtained from: OpenBSD
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pf_print_state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbin/pfctl/pf_print_state.c b/sbin/pfctl/pf_print_state.c
index d4a2c1d..46d4523 100644
--- a/sbin/pfctl/pf_print_state.c
+++ b/sbin/pfctl/pf_print_state.c
@@ -285,8 +285,13 @@ print_state(struct pfsync_state *s, int opts)
const char *states[] = PFUDPS_NAMES;
printf(" %s:%s\n", states[src->state], states[dst->state]);
+#ifndef INET6
} else if (s->proto != IPPROTO_ICMP && src->state < PFOTHERS_NSTATES &&
dst->state < PFOTHERS_NSTATES) {
+#else
+ } else if (s->proto != IPPROTO_ICMP && s->proto != IPPROTO_ICMPV6 &&
+ src->state < PFOTHERS_NSTATES && dst->state < PFOTHERS_NSTATES) {
+#endif
/* XXX ICMP doesn't really have state levels */
const char *states[] = PFOTHERS_NAMES;
OpenPOWER on IntegriCloud