Page MenuHomeFreeBSD

ipfw(4): make O_IPVER/ipversion match IPv4 or IPv6, not just IPv4 by itself
ClosedPublic

Authored by nc on Jun 11 2020, 3:54 AM.
Referenced Files
F134071394: D25227.id.diff
Thu, Oct 30, 1:11 PM
Unknown Object (File)
Tue, Oct 28, 5:24 PM
Unknown Object (File)
Mon, Oct 27, 7:21 PM
Unknown Object (File)
Mon, Oct 27, 4:41 AM
Unknown Object (File)
Sat, Oct 25, 4:57 PM
Unknown Object (File)
Sat, Oct 25, 2:15 PM
Unknown Object (File)
Thu, Oct 16, 7:44 AM
Unknown Object (File)
Thu, Oct 16, 7:44 AM

Details

Summary

ipfw(4): make O_IPVER/ipversion match IPv4 or IPv6, not just IPv4 by itself.

Submitted by: Neel Chauhan <neel AT neelc DOT org>

Test Plan

Try this rule:

ipfw add 1 deny all from any to any ipversion 4

It should deny IPv4 packets

Or this:

ipfw add 1 deny all from any to any ipversion 6

It should deny IPv6 packets.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped