HomeFreeBSD

pf: fix pf_rule_to_actions()

Description

pf: fix pf_rule_to_actions()

If we already had a pipe set in the actions struct we need to take care
to clear the flag if we're overwriting it with a queue.

This can happen if we've got Ethernet rules setting a dummynet pipe.
It does this indirectly, by adding the dummynet information to a pf_mtag
associated with the mbuf.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on May 11 2022, 4:51 PM
Parents
rG920c3410872c: pf tests: test dummynet on route-to'd packets
Branches
Unknown
Tags
Unknown