Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic bpf_mtap*() before ieee80211_encap() should be bp...



details:   https://anonhg.NetBSD.org/src/rev/accc9fa4d37f
branches:  trunk
changeset: 320199:accc9fa4d37f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 26 06:16:09 2018 +0000

description:
bpf_mtap*() before ieee80211_encap() should be bpf_mtap() rather than
bpf_mtap3(). bpf_mtap3() is for raw bpf and be used after ieee80211_encap().

diffstat:

 sys/dev/ic/rt2661.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55f79f5cc9db -r accc9fa4d37f sys/dev/ic/rt2661.c
--- a/sys/dev/ic/rt2661.c       Tue Jun 26 06:03:57 2018 +0000
+++ b/sys/dev/ic/rt2661.c       Tue Jun 26 06:16:09 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rt2661.c,v 1.37 2018/05/01 16:18:13 maya Exp $ */
+/*     $NetBSD: rt2661.c,v 1.38 2018/06/26 06:16:09 msaitoh Exp $      */
 /*     $OpenBSD: rt2661.c,v 1.17 2006/05/01 08:41:11 damien Exp $      */
 /*     $FreeBSD: rt2560.c,v 1.5 2006/06/02 19:59:31 csjp Exp $ */
 
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.37 2018/05/01 16:18:13 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rt2661.c,v 1.38 2018/06/26 06:16:09 msaitoh Exp $");
 
 
 #include <sys/param.h>
@@ -1878,7 +1878,7 @@
                                continue;
                        }
 
-                       bpf_mtap3(ifp->if_bpf, m0);
+                       bpf_mtap(ifp, m0);
                        m0 = ieee80211_encap(ic, m0, ni);
                        if (m0 == NULL) {
                                ieee80211_free_node(ni);



Home | Main Index | Thread Index | Old Index