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
This commit is contained in:
Mark Johnston 2020-06-24 15:46:33 +00:00
parent 133b1f1461
commit 1388cfe1b5

View File

@ -2225,7 +2225,7 @@ do { \
break;
case O_IPVER:
match = (is_ipv4 &&
match = ((is_ipv4 || is_ipv6) &&
cmd->arg1 == ip->ip_v);
break;