]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: fix dummynet + route-to
authorKristof Provost <kp@FreeBSD.org>
Tue, 12 Mar 2024 12:29:08 +0000 (13:29 +0100)
committerKristof Provost <kp@FreeBSD.org>
Tue, 19 Mar 2024 15:29:29 +0000 (16:29 +0100)
commitc6f1116357904d3c2e95430e27213e4d0948fc64
tree99fb6ff28e367f2317622131a3944f658779437b
parent0ea0c026557b46292881d5a75babeb3cc0fd9696
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
sys/netpfil/pf/pf.c
tests/sys/netpfil/pf/route_to.sh