Commit Graph

422 Commits

Author SHA1 Message Date
Guy Harris ad33ca6c2f Clean up some 64-bit issues.
svn path=/trunk/; revision=28117
2009-04-22 03:07:37 +00:00
Stephen Fisher b380da2559 Patch from bug #2986: "Fixes and enhancements in pcapng reader"
svn path=/trunk/; revision=26556
2008-10-26 08:20:26 +00:00
Jeff Morriss 9bd70e0d1d Don't cast a char[] into a guint32/64: the array may not be aligned correctly. This fixes a warning on Solaris/SPARC.
svn path=/trunk/; revision=25692
2008-07-09 20:16:24 +00:00
Jeff Morriss 34e3e26d07 Reindent some to get things a bit more consistent/readable.
svn path=/trunk/; revision=25691
2008-07-09 20:09:23 +00:00
Stephen Fisher 831d85448a Really fix pcapng timestamp reading and writing this time.
svn path=/trunk/; revision=24398
2008-02-20 04:41:31 +00:00
Stig Bjørlykke 7f32e1b7d3 Cast secs and nsecs correct.
Fixed some indentation.

svn path=/trunk/; revision=24353
2008-02-16 11:52:56 +00:00
Stephen Fisher ee56c90fd0 Change if_tsaccur to if_tsresol and change timestamp reading/writing
routines to correctly follow the clarified PcapNg standard document.


svn path=/trunk/; revision=24349
2008-02-16 08:07:07 +00:00
Stig Bjørlykke c6af1bfdd4 Removed some "statement not reached" warnings.
svn path=/trunk/; revision=24282
2008-02-07 12:14:40 +00:00
Ulf Lamping 79fbb2a272 g_warning -> pcapng_debug and "switch it off" as default, so normal users won't be annoyed by debug messages
svn path=/trunk/; revision=24198
2008-01-26 14:08:51 +00:00
Stephen Fisher a3c2114fba Use WTAP_MAX_PACKET_SIZE in place of 65535 in sanity check for snap len
(although they are the same value right now)


svn path=/trunk/; revision=24159
2008-01-22 01:05:32 +00:00
Ulf Lamping 7c59586e56 as we have BSWAP64() now, at least read 64bit section_length (but currently unused)
svn path=/trunk/; revision=24149
2008-01-21 01:54:28 +00:00
Stephen Fisher 1cf84f3d27 Introduce BSWAP64() and use it in the pcapng code
svn path=/trunk/; revision=24142
2008-01-20 02:31:34 +00:00
Ulf Lamping 65a4daed1a Make it compile on Win32 ;-)
svn path=/trunk/; revision=24141
2008-01-19 12:34:43 +00:00
Stig Bjørlykke 75804cec1a Make it compile on OSX.
svn path=/trunk/; revision=24140
2008-01-19 12:22:44 +00:00
Ulf Lamping 39114205fe various enhancements:
- read simple packet block
- read various options
- jump over unknown block types
- more sanity checks

svn path=/trunk/; revision=24139
2008-01-19 12:09:00 +00:00
Ulf Lamping 31be5fa705 decode IDB options (if_tsaccur and if_fcslen)
svn path=/trunk/; revision=24133
2008-01-18 10:29:23 +00:00
Stephen Fisher 9a1c52db82 Add link to pcap-ng format specification and use #defines for hex values of
block types.


svn path=/trunk/; revision=24128
2008-01-18 00:59:30 +00:00
Stephen Fisher 1caef26fa4 Fix seek reading by adding the size of the block length at the end of the
block to the data offset.


svn path=/trunk/; revision=24083
2008-01-14 05:31:38 +00:00
Ulf Lamping 105a6009bd some minor updates
svn path=/trunk/; revision=24082
2008-01-13 22:26:11 +00:00
Stephen Fisher a98ff5a017 Add svn:eol-style native and svn:keywords Id
svn path=/trunk/; revision=24081
2008-01-13 21:10:09 +00:00
Stephen Fisher c352fb3832 Make pcapng.c compile on Unix (with gcc)
svn path=/trunk/; revision=24080
2008-01-13 20:48:36 +00:00
Ulf Lamping 4f565d1a4d add very experimental support for pcapng "PCAP Next Generation Dump File Format" - this is incomplete and buggy, be careful!
svn path=/trunk/; revision=24079
2008-01-13 20:05:07 +00:00