From 7bc165d2961a9b6b9532379180b8525a39c14ef6 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 13 Sep 2015 17:53:45 +0000 Subject: There's no point in abstracting ifp->if_output() as long as pf_test() needs to see lo0 in the output path. ok claudio@ --- sys/net/pf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net/pf.c') 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); } -- cgit v1.2.3