diff options
author | dlg <dlg@openbsd.org> | 2019-06-30 23:02:28 +0000 |
---|---|---|
committer | dlg <dlg@openbsd.org> | 2019-06-30 23:02:28 +0000 |
commit | b2a28ec4ea05141e0f9a97b344b83474e70713a6 (patch) | |
tree | 8569925c7650131ac7021e617839a0b2a719f765 /sys/net/if.c | |
parent | Do not double free window if pane fails to start. (diff) | |
download | wireguard-openbsd-b2a28ec4ea05141e0f9a97b344b83474e70713a6.tar.xz wireguard-openbsd-b2a28ec4ea05141e0f9a97b344b83474e70713a6.zip |
if_vinput should pass BPF_DIRECTION_IN to bpf_mtap, not OUT
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index a5b992f4328..d97506bc0ef 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.585 2019/06/15 17:05:21 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.586 2019/06/30 23:02:28 dlg Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -963,7 +963,7 @@ if_vinput(struct ifnet *ifp, struct mbuf *m) #if NBPFILTER > 0 if_bpf = ifp->if_bpf; if (if_bpf) { - if (bpf_mtap_ether(if_bpf, m, BPF_DIRECTION_OUT)) { + if (bpf_mtap_ether(if_bpf, m, BPF_DIRECTION_IN)) { m_freem(m); return; } |