niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
CRC32 derived questions...
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Poul-Henning Kamp
*nix forums Guru


Joined: 21 Mar 2002
Posts: 436

PostPosted: Wed May 29, 2002 6:15 pm    Post subject: CRC32 derived questions... Reply with quote

I noticed that Marcel put a crc32 function in geom_gpt, and wondered if
we didn't have one some other place already.

Sure enough, we did. In if_wi.c. And in libz. And in if_sbni.c (in
assembler even).

Then I tried to put one copy in libkern but ran into conflicts with zlib.h.

And that made me wonder: Why on earth is sys/zlib.h in net/zlib.h ???

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Peter Wemm
*nix forums Guru Wannabe


Joined: 11 Apr 2002
Posts: 113

PostPosted: Wed May 29, 2002 10:35 pm    Post subject: Re: CRC32 derived questions... Reply with quote

Poul-Henning Kamp wrote:

Quote:
Then I tried to put one copy in libkern but ran into conflicts with zlib.h.

And that made me wonder: Why on earth is sys/zlib.h in net/zlib.h ???

net/zlib.c and net/zlib.h are hacked versions that are part of the
in-kernel pppd. I would be suprised if the more modern versions of zlib
didn't have the extra API's that pppd needs.

We have a decompress-only kern/inflate.c. We could probably gather a
more modern zlib library and replace net/zlib* and kern/inflate.c

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 6:20 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Single Bit Error Correction & Double Eror Detection using... Hari C 3 Fri Jul 21, 2006 11:43 am
No new posts class that have a member of type that's derived from it Mirko Puhic C++ 8 Fri Jul 21, 2006 1:53 am
No new posts Net:TFTPd questions - Want to upload configs via TFTP Adam Perl 0 Thu Jul 20, 2006 4:59 pm
No new posts Net:TFTPd questions - Want to upload configs via TFTP Adam modules 1 Thu Jul 20, 2006 4:29 pm
No new posts Questions on bitfields and struct sarathy C 3 Thu Jul 20, 2006 1:58 pm

Car Loan | Personal Loans | Libros medicina | Bankruptcy | Charity Gifts
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1539s ][ Queries: 16 (0.0804s) ][ GZIP on - Debug on ]