From owner-freebsd-current Mon Jan 27 11:09:34 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA22819 for current-outgoing; Mon, 27 Jan 1997 11:09:34 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA22812 for ; Mon, 27 Jan 1997 11:09:32 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id LAA25980 for ; Mon, 27 Jan 1997 11:09:32 -0800 (PST) Received: from schizo.dk.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0vowOi-0003xvC; Mon, 27 Jan 97 11:07 PST Received: from critter.dk.tfs.com (critter.dk.tfs.com [140.145.230.252]) by schizo.dk.tfs.com (8.8.2/8.7.3) with ESMTP id UAA16606 for ; Mon, 27 Jan 1997 20:07:14 +0100 (MET) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id TAA09811 for ; Mon, 27 Jan 1997 19:02:38 +0100 (MET) To: current@freebsd.org Subject: if_vx (3c59X) users please test Reply-to: phk@freebsd.org Date: Mon, 27 Jan 1997 19:02:37 +0100 Message-ID: <9809.854388157@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.