Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 15:02:56 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r362836 - stable/12/sys/netpfil/ipfw
Message-ID:  <202007011502.061F2u2L077541@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Jul  1 15:02:56 2020
New Revision: 362836
URL: https://svnweb.freebsd.org/changeset/base/362836

Log:
  MFC r362585:
  ipfw(4): make O_IPVER/ipversion match IPv4 or 6, not just IPv4.

Modified:
  stable/12/sys/netpfil/ipfw/ip_fw2.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  1 15:00:03 2020	(r362835)
+++ stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  1 15:02:56 2020	(r362836)
@@ -2187,7 +2187,7 @@ do {						\
 				break;
 
 			case O_IPVER:
-				match = (is_ipv4 &&
+				match = ((is_ipv4 || is_ipv6) &&
 				    cmd->arg1 == ip->ip_v);
 				break;
 



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