diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2020-06-24 15:46:33 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2020-06-24 15:46:33 +0000 |
| commit | 1388cfe1b500db39d4858083f333e50c0f80b5e4 (patch) | |
| tree | c3d7dbf4fffadc4d9daedcf5d88afb0d47965e4a /sys/netpfil/ipfw/ip_fw2.c | |
| parent | 133b1f146122959e4a20f3f61efa9f90fe1aed6d (diff) | |
| download | src-1388cfe1b500db39d4858083f333e50c0f80b5e4.tar.gz src-1388cfe1b500db39d4858083f333e50c0f80b5e4.zip | |
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
Notes
Notes:
svn path=/head/; revision=362585
Diffstat (limited to 'sys/netpfil/ipfw/ip_fw2.c')
| -rw-r--r-- | sys/netpfil/ipfw/ip_fw2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c index 80077d26d4aa..03d8da87949e 100644 --- a/sys/netpfil/ipfw/ip_fw2.c +++ b/sys/netpfil/ipfw/ip_fw2.c @@ -2225,7 +2225,7 @@ do { \ break; case O_IPVER: - match = (is_ipv4 && + match = ((is_ipv4 || is_ipv6) && cmd->arg1 == ip->ip_v); break; |
