diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-09-13 17:53:45 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-09-13 17:53:45 +0000 |
commit | 7bc165d2961a9b6b9532379180b8525a39c14ef6 (patch) | |
tree | 85d88162eef86830853aba24947aea109894c73e /sys/net/pf.c | |
parent | f58ea870ea0479d5c53f38454eb1192f2da705e2 (diff) |
There's no point in abstracting ifp->if_output() as long as pf_test()
needs to see lo0 in the output path.
ok claudio@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index b44193ccdf4..fe629518f7e 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.943 2015/09/12 20:26:06 mpi Exp $ */ +/* $OpenBSD: pf.c,v 1.944 2015/09/13 17:53:44 mpi Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -5575,7 +5575,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, ipstat.ips_outswcsum++; ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); } - error = if_output(ifp, m0, sintosa(dst), NULL); + error = ifp->if_output(ifp, m0, sintosa(dst), NULL); goto done; } @@ -5604,7 +5604,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, m1 = m0->m_nextpkt; m0->m_nextpkt = 0; if (error == 0) - error = if_output(ifp, m0, sintosa(dst), NULL); + error = ifp->if_output(ifp, m0, sintosa(dst), NULL); else m_freem(m0); } |