diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 761e76a5617..518853a7a68 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -7892,6 +7892,12 @@ pf_route(struct mbuf **m, struct pf_krule *r, struct ifnet *oifp, m0->m_pkthdr.csum_flags &= ~CSUM_SCTP; } + /* + * 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.