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
F150128610: D33087.diff
Sun, Mar 29, 3:21 PM
F150042260: D33087.diff
Sat, Mar 28, 11:01 PM
Unknown Object (File)
Sat, Mar 28, 4:31 PM
Unknown Object (File)
Fri, Mar 27, 12:41 PM
Unknown Object (File)
Fri, Mar 27, 5:47 AM
Unknown Object (File)
Thu, Mar 26, 4:36 PM
Unknown Object (File)
Sun, Mar 22, 8:01 AM
Unknown Object (File)
Sun, Mar 22, 4:48 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable