Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2013 21:07:37 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257227 - head/sbin/pfctl
Message-ID:  <201310272107.r9RL7bQ5032598@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Oct 27 21:07:37 2013
New Revision: 257227
URL: http://svnweb.freebsd.org/changeset/base/257227

Log:
  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

Modified:
  head/sbin/pfctl/pf_print_state.c

Modified: head/sbin/pfctl/pf_print_state.c
==============================================================================
--- head/sbin/pfctl/pf_print_state.c	Sun Oct 27 21:06:17 2013	(r257226)
+++ head/sbin/pfctl/pf_print_state.c	Sun Oct 27 21:07:37 2013	(r257227)
@@ -285,8 +285,13 @@ print_state(struct pfsync_state *s, int 
 		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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310272107.r9RL7bQ5032598>