From: sam@iii1.iii.net (Sam Weiner)
Subject: Re: cksum(1) on DEC OSF/1
Date: 1995/06/18 [thread overview]
Message-ID: <3s1ktv$ptl@iii1.iii.net> (raw)
In-Reply-To: SCHELLEN.95Jun14114116@kafka.mpr.ca
In article <SCHELLEN.95Jun14114116@kafka.mpr.ca> schellen@kafka.mpr.ca (Neil Schellenberger) writes:
:
:>>>>> "MC" == Mark Charette <charette@ultoe.det.dec.com> writes:
:
:MC> Neil Schellenberger (schellen@kafka.mpr.ca) wrote:
:MC> : Does anybody know what algorithm is used by /bin/cksum to compute CRCs?
:MC> : I've tried it out on both 2.1 and 3.0 machines both of which give the same
:MC> : results. These results differ from both a) the NetBSD cksum and b) what I
:MC> : would expect based on the Posix 1003.2 algorithm. Can anyone shed some
:MC> : light? Am I just doing something wrong?
:MC>
:MC> Did you try man cksum ? It gives the polynomial used (along with other
:MC> interesting info) on OSF/1 3.0 and 3.2.
:
:Actually that's where I started this sad and rather painful journey.
:I've implemented the algorithm exactly as it is described. My code
:generates CRCs which are the same as those generated by NetBSD's
:cksum(1). (I grabbed the [publicly available] NetBSD cksum(1) source
:from an FTP site somewhere.) The OSF/1 cksum(1) in /bin steadfastly
:generates something different.
:
[sad story deleted -smw]
At the bottom of the man cksum page is a reference to sum. The man page
for sum talks about providing both BSD and SVID2 style checksums. Perhaps
thia would help (not knowing NetBSD's algorithm?) As you said, love
those standards.
Sam
prev parent reply other threads:[~1995-06-18 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-14 4:00 cksum(1) on DEC OSF/1 Neil Schellenberger
1995-06-14 4:00 ` Mark Charette
1995-06-14 4:00 ` Neil Schellenberger
1995-06-18 4:00 ` Sam Weiner [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox