Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2020 15:46:33 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362585 - head/sys/netpfil/ipfw
Message-ID:  <202006241546.05OFkXNQ014265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Jun 24 15:46:33 2020
New Revision: 362585
URL: https://svnweb.freebsd.org/changeset/base/362585

Log:
  ipfw(4): make O_IPVER/ipversion match IPv4 or 6, not just IPv4.
  
  Submitted by:	Neel Chauhan <neel AT neelc DOT org>
  Reviewed by:	Lutz Donnerhacke
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D25227

Modified:
  head/sys/netpfil/ipfw/ip_fw2.c

Modified: head/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw2.c	Wed Jun 24 15:21:12 2020	(r362584)
+++ head/sys/netpfil/ipfw/ip_fw2.c	Wed Jun 24 15:46:33 2020	(r362585)
@@ -2225,7 +2225,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?202006241546.05OFkXNQ014265>