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)
Tue, Sep 1, 8:06 PM
Unknown Object (File)
Tue, Sep 1, 5:46 PM
Unknown Object (File)
Sun, Aug 23, 1:47 AM
Unknown Object (File)
Fri, Aug 21, 12:14 AM
Unknown Object (File)
Wed, Aug 19, 8:43 AM
Unknown Object (File)
Mon, Aug 17, 4:46 AM
Unknown Object (File)
Mon, Aug 17, 12:02 AM
Unknown Object (File)
Aug 14 2026, 7:41 AM

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