diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:15:34 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-11-20 05:15:34 +0000 |
commit | 14b24da0e621f5730f36dd9d7f1e52e066b49c7d (patch) | |
tree | 6b47e57653ef9ea33edf6c2411e523d416a0a21e /sys/net/if_tun.c | |
parent | fdce9f418c1c2505431ac2c4ddc3312603ec9a92 (diff) |
if we deq m0, we should probably send it to bpf, not m.
found by and ok jsg@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 948a0f0f296..082ad3f8486 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.160 2015/11/20 03:35:23 dlg Exp $ */ +/* $OpenBSD: if_tun.c,v 1.161 2015/11/20 05:15:33 dlg Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -814,7 +814,7 @@ tun_dev_read(struct tun_softc *tp, struct uio *uio, int ioflag) if (tp->tun_flags & TUN_LAYER2) { #if NBPFILTER > 0 if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); + bpf_mtap(ifp->if_bpf, m0, BPF_DIRECTION_OUT); #endif ifp->if_opackets++; } |