Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/dev/pci Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/3c3f82a079f7
branches: netbsd-6
changeset: 775457:3c3f82a079f7
user: riz <riz%NetBSD.org@localhost>
date: Mon Nov 19 18:41:59 2012 +0000
description:
Pull up following revision(s) (requested by msaitoh in ticket #655):
sys/dev/pci/if_et.c: revision 1.5
Don't use old NBPFILTER macro and use new bpf_mtap() API.
It fixes a bug that et(4) can't use bpf.
diffstat:
sys/dev/pci/if_et.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diffs (52 lines):
diff -r 032474cdcfea -r 3c3f82a079f7 sys/dev/pci/if_et.c
--- a/sys/dev/pci/if_et.c Mon Nov 19 18:38:01 2012 +0000
+++ b/sys/dev/pci/if_et.c Mon Nov 19 18:41:59 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_et.c,v 1.3 2012/01/30 19:41:20 drochner Exp $ */
+/* $NetBSD: if_et.c,v 1.3.2.1 2012/11/19 18:41:59 riz Exp $ */
/* $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.3 2012/01/30 19:41:20 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.3.2.1 2012/11/19 18:41:59 riz Exp $");
#include "opt_inet.h"
#include "vlan.h"
@@ -70,9 +70,7 @@
#include <netinet/if_inarp.h>
#endif
-#if NBPFILTER > 0
#include <net/bpf.h>
-#endif
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
@@ -1121,10 +1119,7 @@
trans = 1;
-#if NBPFILTER > 0
- if (ifp->if_bpf != NULL)
- bpf_mtap(ifp->if_bpf, m);
-#endif
+ bpf_mtap(ifp, m);
}
if (trans) {
@@ -1779,10 +1774,7 @@
ETHER_CRC_LEN;
m->m_pkthdr.rcvif = ifp;
-#if NBPFILTER > 0
- if (ifp->if_bpf != NULL)
- bpf_mtap(ifp->if_bpf, m);
-#endif
+ bpf_mtap(ifp, m);
ifp->if_ipackets++;
(*ifp->if_input)(ifp, m);
Home |
Main Index |
Thread Index |
Old Index