Skip to content

Commit

Permalink
pf_test6 does not know how to handle PF_FWD, pass PF_OUT instead.
Browse files Browse the repository at this point in the history
pf_test6 can detect if the packet needs to be forwarded.

Fixes an issue where the output state is not created when a packet is routed to a specific interface (with route-to).

Issue:		#5424
  • Loading branch information
loos-br committed Nov 24, 2015
1 parent 2b2f5ac commit 7ed1aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netpfil/pf/pf.c
Expand Up @@ -6008,7 +6008,7 @@ pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
pf_packet_undo_nat(m0, pd, ip_off, s, dir);
}

if (pf_test6(PF_FWD, ifp, &m0, NULL) != PF_PASS)
if (pf_test6(PF_OUT, ifp, &m0, NULL) != PF_PASS)
goto bad;
else if (m0 == NULL)
goto done;
Expand Down

0 comments on commit 7ed1aac

Please sign in to comment.