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
Unknown Object (File)
Jan 10 2024, 10:27 PM
Unknown Object (File)
Dec 23 2023, 1:14 AM
Unknown Object (File)
Dec 11 2023, 5:44 AM
Unknown Object (File)
Dec 11 2023, 4:03 AM
Unknown Object (File)
Nov 30 2023, 4:32 PM
Unknown Object (File)
Oct 24 2023, 6:17 PM
Unknown Object (File)
Sep 22 2023, 7:44 PM
Unknown Object (File)
Sep 16 2023, 6:24 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