HomeFreeBSD

pf: fix netpfil.common.dummynet:pf_nat test

Description

pf: fix netpfil.common.dummynet:pf_nat test

This test failed if ipfw was loaded (as well as pf). pf used the same
tag as dummynet 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")
Differential Revision: https://reviews.freebsd.org/D33087

Details

Provenance
kpAuthored on Nov 22 2021, 8:47 PM
Differential Revision
D33087: pf: fix netpfil.common.dummynet:pf_nat test
Parents
R10:18d04cd2d42c: pf: align IPv6 dummynet handling with IPv4
Branches
Unknown
Tags
Unknown