From owner-freebsd-current@FreeBSD.ORG Wed Apr 27 05:38:54 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23ABB16A4CE for ; Wed, 27 Apr 2005 05:38:54 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5261C43D5F for ; Wed, 27 Apr 2005 05:38:53 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j3R5cgOZ098961; Tue, 26 Apr 2005 22:38:43 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <426F2562.2090008@freebsd.org> Date: Tue, 26 Apr 2005 22:38:42 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose M Rodriguez References: <200504261143.55195.josemi@redesjm.local> <426E9E1C.6020609@errno.com> <20050426221922.GD8621@ns1.xcllnt.net> <200504270052.33158.josemi@redesjm.local> In-Reply-To: <200504270052.33158.josemi@redesjm.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: Sam Leffler cc: freebsd-current@freebsd.org cc: Marcel Moolenaar Subject: Re: rigth crc32 implementation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 05:38:54 -0000 Jose M Rodriguez wrote: > El Miércoles, 27 de Abril de 2005 00:19, Marcel Moolenaar escribió: >>On Tue, Apr 26, 2005 at 01:01:32PM -0700, Sam Leffler wrote: >> >>>Note also there is CRC32 code of this sort in WEP and TKIP crypto >>>modules in the net80211 support. >> >>Given the seperation of crc32() into crc32_raw() and crc32(), with >>either crc32() only or otherwise both functions inlined, are there >>any obstacles preventing the 802.11 code from using the ones in >>src/sys/libkern? > > at last, sys/dev/if_sbni have another implementation of what seems to be > a crc32 alg. Be a little careful, please. There are very many different, incompatible "32-bit CRCs." There are just a few popular ones, so you can often combine functions, but not always. Any CRC implementation should clearly document the generating polynomial and the preconditioning and postconditioning assumptions. Tim Kientzle