Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci There is no need to accept all ARP packets (rega...



details:   https://anonhg.NetBSD.org/src/rev/10e4563f2ef5
branches:  trunk
changeset: 507536:10e4563f2ef5
user:      briggs <briggs%NetBSD.org@localhost>
date:      Sat Mar 24 19:40:51 2001 +0000

description:
There is no need to accept all ARP packets (regardless of destination
address) on the DP83815.  Noted by Shiva Shenoy <shiva%riverstonenet.com@localhost>
in private correspondence.

diffstat:

 sys/dev/pci/if_sip.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r dc0bd5eb2580 -r 10e4563f2ef5 sys/dev/pci/if_sip.c
--- a/sys/dev/pci/if_sip.c      Sat Mar 24 18:26:11 2001 +0000
+++ b/sys/dev/pci/if_sip.c      Sat Mar 24 19:40:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sip.c,v 1.26 2001/03/09 16:07:20 briggs Exp $       */
+/*     $NetBSD: if_sip.c,v 1.27 2001/03/24 19:40:51 briggs Exp $       */
 
 /*-
  * Copyright (c) 1999 Network Computer, Inc.
@@ -1872,13 +1872,13 @@
 
        /*
         * Initialize the prototype RFCR.
-        * Enable the receive filter, and accept ARP
-        * and on Perfect (destination address) Match
+        * Enable the receive filter, and accept on
+        *    Perfect (destination address) Match
         * If IFF_BROADCAST, also accept all broadcast packets.
         * If IFF_PROMISC, accept all unicast packets (and later, set
         *    IFF_ALLMULTI and accept all multicast, too).
         */
-       sc->sc_rfcr = RFCR_RFEN | RFCR_AARP | RFCR_APM;
+       sc->sc_rfcr = RFCR_RFEN | RFCR_APM;
        if (ifp->if_flags & IFF_BROADCAST)
                sc->sc_rfcr |= RFCR_AAB;
        if (ifp->if_flags & IFF_PROMISC) {



Home | Main Index | Thread Index | Old Index