Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix multicast hashing function. PR 7274, from Izu...



details:   https://anonhg.NetBSD.org/src/rev/96c29ecde5f7
branches:  trunk
changeset: 467794:96c29ecde5f7
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Mar 29 11:11:34 1999 +0000

description:
Fix multicast hashing function. PR 7274, from Izumi Tsutsui

diffstat:

 sys/dev/ic/elinkxl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 86bcaa3c9376 -r 96c29ecde5f7 sys/dev/ic/elinkxl.c
--- a/sys/dev/ic/elinkxl.c      Mon Mar 29 11:09:04 1999 +0000
+++ b/sys/dev/ic/elinkxl.c      Mon Mar 29 11:11:34 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elinkxl.c,v 1.6 1999/03/25 23:18:32 thorpej Exp $      */
+/*     $NetBSD: elinkxl.c,v 1.7 1999/03/29 11:11:34 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -643,7 +643,7 @@
 
        for (i = 0; i < 6; i++) {
                c = addr[i];
-               for (j = 0; i < 8; i++) {
+               for (j = 0; j < 8; j++) {
                        carry = ((crc & 0x80000000) ? 1 : 0) ^ (c & 0x01);
                        crc <<= 1;
                        c >>= 1;



Home | Main Index | Thread Index | Old Index