Summary: | ipfw - fix option 'ipversion' matching only IPv4 packets | ||||||
---|---|---|---|---|---|---|---|
Product: | Documentation | Reporter: | Freddy DISSAUX <dsx> | ||||
Component: | Manual Pages | Assignee: | freebsd-ipfw (Nobody) <ipfw> | ||||
Status: | Closed Overcome By Events | ||||||
Severity: | Affects Only Me | CC: | doc, felix.the.red, ygy | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
ip_fw2.c added IPv6 support for ipversion in this revision: https://cgit.freebsd.org/src/commit/sys/netpfil/ipfw/ip_fw2.c?id=1388cfe1b500db39d4858083f333e50c0f80b5e4 Since IPv4 and IPv6 are supported, do we still need this PR? Closing - thanks! |
Created attachment 209546 [details] 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.