aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/eyesdn.c
AgeCommit message (Collapse)AuthorFilesLines
2011-04-06From Jakub Zawadzki:Guy Harris1-1/+1
file_read(buf, bsize, count, file) macro is compilant with fread function and takes elements count+ size of each element, however to make it compilant with gzread() it always returns number of bytes. In wiretap file_read() this is not really used, file_read is called either with bsize set to 1 or count to 1. Attached patch remove bsize argument from macro. svn path=/trunk/; revision=36491
2010-06-06Move the seekback stuff out of esc_read() to the one place where it'sGuy Harris1-253/+264
done. Use the wtap_dump_file_ routines to write out capture files, and check for errors. Use the phton macros, when available, to translate to big-endian byte order. Add a new phton24() macro. Clean up indentation. svn path=/trunk/; revision=33114
2010-06-05From Rolf Fiedler: support for writing EyeSDN trace files.Guy Harris1-0/+140
svn path=/trunk/; revision=33107
2009-04-22Clean up some 64-bit issues.Guy Harris1-12/+10
svn path=/trunk/; revision=28117
2009-01-27From Rolf Fiedler:Anders Broman1-0/+21
Add DPNSS link layer dissector, support EyeSDN Trace files with DPNSS. (Removed a couple of c++ style comments). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3224 svn path=/trunk/; revision=27312
2008-05-07Fix some of the Errors/warnings detected by checkapi.Anders Broman1-11/+11
svn path=/trunk/; revision=25248
2008-04-20From Rolf Fiedler (bug 2408):Stig Bjørlykke1-21/+81
This extends the EyeSDN wiretap module to be able to support: - DSS1/Q.931 - PPP - LAPB/X.25 - ATM raw cells - SS7 MTP2 svn path=/trunk/; revision=25123
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping1-7/+7
handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814
2006-09-29From: Rolf Fiedler Jaap Keuter1-3/+4
So far Wireshark complained about channel 129, now it gets a little further and then complains about channel 128. Solution: Open up all channel from 128 up. svn path=/trunk/; revision=19358
2006-09-28From Rolf Fiedler:Jaap Keuter1-2/+2
I am the author of the eyesdn wiretap module. Recently we added ATM support to our trace format. We used channel id 129 for that, so far only 0 for D channel and 1-30 for bearer channels had been in use. svn path=/trunk/; revision=19353
2005-08-25timestamp display precision:Ulf Lamping1-0/+1
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-2/+2
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-04-03Make editcap use wtap_read(); that eliminates the last user ofGuy Harris1-1/+1
wtap_loop(), so eliminate wtap_loop(). svn path=/trunk/; revision=14006
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
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-04-02From Rolf Fiedler: fix a comment, and fix the code to get the packetGuy Harris1-3/+3
length. svn path=/trunk/; revision=10541
2004-03-23Clean up the code to check the file type.Guy Harris1-44/+12
svn path=/trunk/; revision=10445
2004-03-17"esc_read()" is passed a FILE_T, not a FILE_T * - a FILE_T is a pointerGuy Harris1-3/+3
(a FILE * if zlib isn't used, a gzFile if zlib is used). Use "size_t" for the amount of data to read in "eyesdn_check_file_type()", to squelch signed vs. unsigned warnings. svn path=/trunk/; revision=10392
2004-03-03Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",Guy Harris1-2/+1
rather than requiring individual capture file type handlers to do it (unless they're doing per-packet encapsulation, in which case we check to make sure they didn't *leave* it as WTAP_ENCAP_PER_PACKET). svn path=/trunk/; revision=10290
2004-03-03Set the packet encapsulation value to the file encapsulation.Guy Harris1-1/+2
svn path=/trunk/; revision=10285
2004-02-13Get rid of unused variables and #defines.Guy Harris1-7/+2
svn path=/trunk/; revision=10059
2004-02-12Use "guint8" for 8-bit binary data.Guy Harris1-36/+40
"file_getc()" returns either an 8-bit unsigned value, or -1 for error or EOF; store its return value into an "int", and check for -1 and return -2, in "esc_read()" (rather than checking "file_error()" at the end). Clean up some comments, routine names, and variable names - eyeSDN files are binary, not text. In "parse_eyesdn_packet_data()", handle the case of an EOF from "esc_read()". svn path=/trunk/; revision=10050
2004-02-11From Rolf Fiedler: support for reading EyeSDN USB S0 trace files.Guy Harris1-0/+349
svn path=/trunk/; revision=10038