aboutsummaryrefslogtreecommitdiff
path: root/sys/netpfil/pf/pf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netpfil/pf/pf.c')
-rw-r--r--sys/netpfil/pf/pf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 36ff0eac16ad..ec7964a48e6d 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -7362,6 +7362,12 @@ pf_route(struct mbuf **m, struct pf_krule *r, struct ifnet *oifp,
}
/*
+ * Make sure dummynet gets the correct direction, in case it needs to
+ * re-inject later.
+ */
+ pd->dir = PF_OUT;
+
+ /*
* If small enough for interface, or the interface will take
* care of the fragmentation for us, we can just send directly.
*/