[Bug 242318] ipfw - option 'ipversion' match only IPv4 packets
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 30 09:42:06 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242318
Bug ID: 242318
Summary: ipfw - option 'ipversion' match only IPv4 packets
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Manual Pages
Assignee: bugs at FreeBSD.org
Reporter: dsx at bsdsx.fr
CC: doc at FreeBSD.org
Created attachment 209546
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209546&action=edit
replace IP by IPv4
option 'ipversion' match only IPv4 packets:
sys/netpfil/ipfw/ip_fw2.c:
...
2207 case O_IPVER:
2208 match = (is_ipv4 &&
2209 cmd->arg1 == ip->ip_v);
2210 break;
As others options (iptos, ipid ...), replace IP by IPv4:
ipversion ver
Matches IP packets whose IP version field is ver.
become
ipversion ver
Matches IPv4 packets whose IP version field is ver.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-doc
mailing list