Date: Mon, 27 Jan 1997 19:02:37 +0100 From: Poul-Henning Kamp <phk@critter.dk.tfs.com> To: current@freebsd.org Subject: if_vx (3c59X) users please test Message-ID: <9809.854388157@critter.dk.tfs.com>
next in thread | raw e-mail | index | archive | help
I have a PCI 3c59x here that seems to be in promicous mode all the time.
I would appreciate if a couple of if_vx users would run this patch for
to see if this is a driver issue or my card is sick.
If everything is OK, you should see no output, if it isn't you may see
a lot.
Index: if_vx.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vx/if_vx.c,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 if_vx.c
--- if_vx.c 1996/12/03 11:06:25 1.2.2.2
+++ if_vx.c 1997/01/27 17:56:31
@@ -782,6 +782,13 @@
}
#endif
+ /* This may merely be my card, but it seems to be in promiscous all the time */
+ if ((eh->ether_dhost[0] & 1) == 0 && /* !mcast and !bcast */
+ bcmp(eh->ether_dhost, sc->arpcom.ac_enaddr,sizeof(eh->ether_dhost)) != 0) {
+ printf("this shouldn't happen\n");
+ m_freem(m);
+ return;
+ }
/* We assume the header fit entirely in one mbuf. */
m_adj(m, sizeof(struct ether_header));
ether_input(ifp, eh, m);
--
Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox.
whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9809.854388157>
