Page MenuHomeFreeBSD

pf: fix netpfil.common.dummynet:pf_nat test

Authored by kp on Nov 22 2021, 10:39 PM.
Referenced Files
Unknown Object (File)
Sun, May 7, 12:52 AM
Unknown Object (File)
Feb 23 2023, 11:27 PM
Unknown Object (File)
Dec 28 2022, 3:13 AM
Unknown Object (File)
Dec 27 2022, 5:55 AM
Unknown Object (File)
Dec 5 2022, 11:58 PM
Unknown Object (File)
Nov 29 2022, 1:28 AM



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

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable