Page MenuHomeFreeBSD

ipfw: improve matching on IPv4 fragments
ClosedPublic

Authored by glebius on Aug 10 2020, 9:17 PM.
Tags
None
Referenced Files
F172887008: D26021.id.diff
Mon, Sep 21, 8:47 PM
Unknown Object (File)
Sun, Sep 20, 12:31 AM
Unknown Object (File)
Sun, Sep 20, 12:30 AM
Unknown Object (File)
Sun, Sep 20, 12:26 AM
Unknown Object (File)
Thu, Sep 10, 8:43 PM
Unknown Object (File)
Sat, Sep 5, 2:08 AM
Unknown Object (File)
Fri, Sep 4, 11:51 PM
Unknown Object (File)
Fri, Sep 4, 5:37 PM

Details

Summary

Currently ipfw(8) allows to match on a packet being not a first fragment.
This prevents even such a simple rule as to block all fragmented packets.

This backward compatible enhancement allows to match explicitly on
IP_MF, IP_DF, even on IP_RF and on non-zero offset.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 32898
Build 30298: arc lint + arc unit