Commit Graph

6 Commits

Author SHA1 Message Date
Guy Harris 2599bcad0a From Chris Maynard:
add versions of CRC-16 and CRC-32 routines with seed arguments;

	add versions of those routines with an "offset in the tvbuff"
	argument;

	add Doxygen comments to the CRC-16 and CRC-32 headers.

svn path=/trunk/; revision=11573
2004-07-30 07:43:02 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Guy Harris d88cd5d6dd Use the "crc16.c" CRC-16 routine in the PPP dissector.
Rename the "crc32.c" CRC-32 routine "crc32_ccitt_tvb()", to match the
"crc16.c" CRC-16 routine, and rename the table it uses to match.  Also
rename "crc32_tvb_802" to "crc32_802_tvb", to match "crc32_ccitt_tvb()".

svn path=/trunk/; revision=11245
2004-06-26 09:48:12 +00:00
Guy Harris b73e8138a8 Make the CRC-32 routines take a tvbuff and a length as arguments.
Rename "crc32()" so as not to collide with the one in zlib; rename
"crc32_802()" to match.

svn path=/trunk/; revision=8268
2003-08-26 06:18:18 +00:00
Guy Harris f7e3062867 From Jesper Peterson:
Extract the FCS decoding section of the PPP_HDLC dissector to
	allow the CHDLC dissector to use the same routine.

	The ppp_options used for preferences has been renamed to
	fcs_options and exported via packet-ppp.h so CHDLC gets a
	separate (but identical) FCS preference.

	This means prefs.h has to be included before packet-ppp.h so a
	couple of ppp related files (packet-{gtp,null,raw,vj}.c) had
	their includes slightly re-arranged.

From me: make the PPP/CHDLC FCS code use "crc32()" to check the 32-bit
FCS.

svn path=/trunk/; revision=8266
2003-08-26 05:52:53 +00:00
Guy Harris 42fdef2ff4 Extract the CRC-32 code from the 802.11 dissector into a separate file,
and use it in the Ethernet dissector as well, to check the FCS in
Ethernet frames, if present.

svn path=/trunk/; revision=8265
2003-08-26 05:09:56 +00:00