Subject: kern/7274: typo in elinkxl.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 03/29/1999 18:18:10
>Number: 7274
>Category: kern
>Synopsis: typo in elinkxl.c
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 29 01:20:00 1999
>Last-Modified:
>Originator: Izumi Tsutsui
>Organization:
Izumi Tsutsui Himeji City, JAPAN
>Release: NetBSD-current 19990328
>Environment:
System: NetBSD mirage 1.3K NetBSD 1.3K (MIRAGE) #60: Wed Mar 24 20:49:49 JST \
1999 root@:/usr/src/sys/arch/i386/compile/MIRAGE i386
>Description:
There is a typo in elinkxl.c. ex_mchash() would return a wrong value.
>How-To-Repeat:
See the source.
>Fix:
--- elinkxl.c.orig Mon Mar 29 17:54:48 1999
+++ elinkxl.c Mon Mar 29 18:01:50 1999
@@ -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;
>Audit-Trail:
>Unformatted: