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
Unknown Object (File)
Sat, Dec 6, 2:54 AM
Unknown Object (File)
Tue, Nov 25, 5:20 AM
Unknown Object (File)
Tue, Nov 25, 3:19 AM
Unknown Object (File)
Sun, Nov 23, 4:13 PM
Unknown Object (File)
Fri, Nov 21, 4:12 AM
Unknown Object (File)
Mon, Nov 17, 3:20 PM
Unknown Object (File)
Mon, Nov 17, 1:42 PM
Unknown Object (File)
Nov 4 2025, 6:01 PM

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