Subject: Re: tcpdump sees nothing?
To: Stephane Bortzmeyer <stephane@sources.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 04/02/2006 15:57:14
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Apr 01, 2006 at 10:20:24PM +0200, Stephane Bortzmeyer wrote:
> I have a NetBSD 3.99.17 domU on Xen 3. Networking seems to work fine
> but tcpdump is blind: it never displays anything.
Ops, yes, forgot to include bpfilter.h so the driver is not aware that
there are bpf configured.
please apply the attached patch (or cvs update)
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Index: xen/if_xennet_xenbus.c
===================================================================
RCS file: /cvsroot/src/sys/arch/xen/xen/if_xennet_xenbus.c,v
retrieving revision 1.4
diff -u -r1.4 if_xennet_xenbus.c
--- xen/if_xennet_xenbus.c 19 Mar 2006 00:30:00 -0000 1.4
+++ xen/if_xennet_xenbus.c 2 Apr 2006 13:53:32 -0000
@@ -66,6 +66,7 @@
#include "opt_xen.h"
#include "opt_nfs_boot.h"
#include "rnd.h"
+#include "bpfilter.h"
#include <sys/param.h>
#include <sys/device.h>
@@ -79,6 +80,10 @@
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_ether.h>
+#if NBPFILTER > 0
+#include <net/bpf.h>
+#include <net/bpfdesc.h>
+#endif
#if defined(NFS_BOOT_BOOTSTATIC)
#include <sys/fstypes.h>
--lrZ03NoBR/3+SXJZ--