Page MenuHomeFreeBSD

[ipfw] Unbreak lookup src/dst-ip
ClosedPublic

Authored by lytboris_gmail.com on Nov 15 2025, 6:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 12:35 PM
Unknown Object (File)
Wed, May 13, 10:50 PM
Unknown Object (File)
Wed, May 13, 10:28 PM
Unknown Object (File)
Wed, May 13, 9:19 PM
Unknown Object (File)
Wed, May 13, 9:19 PM
Unknown Object (File)
Wed, May 13, 9:18 PM
Unknown Object (File)
Mon, May 11, 7:20 PM
Unknown Object (File)
Mon, May 11, 7:11 PM

Details

Summary

There's a fallthough bug in a switch statement for lookup opcode caused by an extra else statement: legitimate IPv4 and IPv6 packets fall through to LOOKUP_DSCP case while they must exit switch.

Test Plan

Create rules

ipfw table mytable create type addr
ipfw table mytable add 192.168.0.0/16 # put your source address here
ipfw add count ip from any to any lookup src-ip mytable

Observe packets matching the rule

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable