Page MenuHomeFreeBSD

pf: fix netpfil.common.dummynet:pf_nat test
ClosedPublic

Authored by kp on Nov 22 2021, 10:39 PM.
Tags
None
Referenced Files
F160346507: D33087.id.diff
Tue, Jun 23, 1:06 PM
Unknown Object (File)
Mon, Jun 22, 10:19 AM
Unknown Object (File)
Fri, May 29, 7:13 AM
Unknown Object (File)
May 24 2026, 3:19 AM
Unknown Object (File)
May 24 2026, 3:19 AM
Unknown Object (File)
May 14 2026, 1:37 PM
Unknown Object (File)
May 14 2026, 12:07 PM
Unknown Object (File)
May 13 2026, 12:14 AM

Details

Summary

This test failed if ipfw was loaded (as well as pf). pf used the same
tag as summynet to indicate a packet had already gone through dummynet.
However, ipfw removes this tag, so pf didn't realise the packet had
already gone through dummynet.

Introduce a separate flag, in the existing pf mtag rather than re-using
the ipfw tag. There were no free flag bits, but PF_TAG_FRAGCACHE is no
longer used so its bit can be re-purposed.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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