From owner-freebsd-current Wed Nov 1 1:23: 2 2000 Delivered-To: freebsd-current@freebsd.org Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by hub.freebsd.org (Postfix) with ESMTP id 6A32037B4C5; Wed, 1 Nov 2000 01:22:59 -0800 (PST) Received: from waterblue.imgsrc.co.jp (localhost [127.0.0.1]) by waterblue.imgsrc.co.jp (8.11.0/8.11.0) with ESMTP id eA19Mrr28544; Wed, 1 Nov 2000 18:22:53 +0900 (JST) Date: Wed, 01 Nov 2000 18:22:53 +0900 Message-ID: <7msnpcm4gi.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: wpaul@FreeBSD.org Cc: Current Subject: dev/usb/if_aue.c multicast patch User-Agent: Wanderlust/2.3.92 (Roam) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: multipart/mixed; boundary="Multipart_Wed_Nov__1_18:22:53_2000-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --Multipart_Wed_Nov__1_18:22:53_2000-1 Content-Type: text/plain; charset=US-ASCII In Japanese mailing-list, Ryoji Kato-san reported patch for if_aue.c to receive multicast packet correctly. # http://www.clave.gr.jp/ml/bsd-nomads/200009/msg00084.html (Japanese) One of problem may be caused by too large mask (1 << (h & 0xF)) for 8 bit register. I'm using this patch and it works fine in IPv6 environment. Bill, please review attached patch or original one in above URL. -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project --Multipart_Wed_Nov__1_18:22:53_2000-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="if_aue.c.diff" Content-Transfer-Encoding: 7bit Index: if_aue.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/if_aue.c,v retrieving revision 1.31 diff -u -r1.31 if_aue.c --- if_aue.c 2000/10/24 22:38:54 1.31 +++ if_aue.c 2000/10/29 13:11:01 @@ -543,7 +543,7 @@ if (ifma->ifma_addr->sa_family != AF_LINK) continue; h = aue_crc(LLADDR((struct sockaddr_dl *)ifma->ifma_addr)); - AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0xF)); + AUE_SETBIT(sc, AUE_MAR + (h >> 3), 1 << (h & 0x7)); } return; --Multipart_Wed_Nov__1_18:22:53_2000-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message