summaryrefslogtreecommitdiff
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-12 20:26:08 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-12 20:26:08 +0000
commit62488894e357cef741a48eeff848f58431ce07ed (patch)
treef70491c5141d8697d0b27819c26bbca957b26bf1 /sys/net/bpf.c
parentd4533dcdd79582de2b7d8682334227be2c589776 (diff)
Stop overwriting the rt_ifp pointer of RTF_LOCAL routes with lo0ifp.
Use instead the RTF_LOCAL flag to loop local traffic back to the corresponding protocol queue. With this change rt_ifp is now always the same as rt_ifa->ifa_ifp. ok claudio@
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 0af1d15b9e3..a541aaa87ef 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.c,v 1.125 2015/09/11 08:59:48 mpi Exp $ */
+/* $OpenBSD: bpf.c,v 1.126 2015/09/12 20:26:06 mpi Exp $ */
/* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */
/*
@@ -556,7 +556,7 @@ bpfwrite(dev_t dev, struct uio *uio, int ioflag)
dst.ss_family = pseudo_AF_HDRCMPLT;
s = splsoftnet();
- error = (*ifp->if_output)(ifp, m, (struct sockaddr *)&dst, NULL);
+ error = if_output(ifp, m, (struct sockaddr *)&dst, NULL);
splx(s);
/*
* The driver frees the mbuf.