HomeFreeBSD

pf: fix dummynet + route-to

Description

pf: fix dummynet + route-to

Ensure that we pick the correct dummynet pipe (i.e. forward vs. reverse
direction) when applying route-to.

We mark the processing as outbound so that dummynet will re-inject in
the correct phase of processing after it's done with the packet, but
that will cause us to pick the wrong pipe number. Reverse them so that
the incorrect decision ends up picking the correct pipe.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D44366

Details

Provenance
kpAuthored on Mar 12 2024, 12:29 PM
Differential Revision
D44366: pf: fix dummynet + route-to
Parents
rG0ea0c026557b: pf: avoid passing through dummynet multiple times
Branches
Unknown
Tags
Unknown