Date: Wed, 01 Nov 2000 18:22:53 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: wpaul@FreeBSD.org Cc: Current <FreeBSD-current@FreeBSD.org> Subject: dev/usb/if_aue.c multicast patch Message-ID: <7msnpcm4gi.wl@waterblue.imgsrc.co.jp>
next in thread | raw e-mail | index | archive | help
--Multipart_Wed_Nov__1_18:22:53_2000-1 Content-Type: text/plain; charset=US-ASCII In Japanese mailing-list, Ryoji Kato-san <ryoji.kato@nrj.ericsson.se> 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 <kuriyama@imgsrc.co.jp> // IMG SRC, Inc. <kuriyama@FreeBSD.org> // 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7msnpcm4gi.wl>