aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
AgeCommit message (Collapse)AuthorFilesLines
2004-02-11From Rolf Fiedler: support for reading EyeSDN USB S0 trace files.Guy Harris1-1/+7
svn path=/trunk/; revision=10038
2004-02-06V9 format appears to be used by some versions of EtherPeek, too.Guy Harris1-2/+2
The MediaType field seems to be 0 for the Ethernet captures; however, the MediaSubType field is different. The fields in the header are different - we can't use hard-coded offsets for the fields, we have to process them as a sequence of tag/value items. Rename some routines to use the same naming convention as the V9 open routine rather than the same convention as the V5/V6/V7 read and seek/read routines. svn path=/trunk/; revision=9990
2004-01-25Have the Wiretap open, read, and seek-and-read routines return, inGuy Harris1-4/+5
addition to an error code, an error info string, for WTAP_ERR_UNSUPPORTED, WTAP_ERR_UNSUPPORTED_ENCAP, and WTAP_ERR_BAD_RECORD errors. Replace the error messages logged with "g_message()" for those errors with g_strdup()ed or g_strdup_printf()ed strings returned as the error info string, and change the callers of those routines to, for those errors, put the info string into the printed message or alert box for the error. Add messages for cases where those errors were returned without printing an additional message. Nobody uses the error code from "cf_read()" - "cf_read()" puts up the alert box itself for failures; get rid of the error code, so it just returns a success/failure indication. Rename "file_read_error_message()" to "cf_read_error_message()", as it handles read errors from Wiretap, and have it take an error info string as an argument. (That handles a lot of the work of putting the info string into the error message.) Make some variables in "ascend-grammar.y" static. Check the return value of "erf_read_header()" in "erf_seek_read()". Get rid of an unused #define in "i4btrace.c". svn path=/trunk/; revision=9852
2003-12-02From Martijn Schipper: support for reading AiroPeek files in V9 captureGuy Harris1-1/+7
file format (AiroPeek 2.x). svn path=/trunk/; revision=9144
2003-12-01It's RedHat, not Red Hat.Richard Sharpe1-2/+2
svn path=/trunk/; revision=9126
2003-11-06From Scott Emberley: support for writing Network Instruments ObserverGuy Harris1-2/+2
files. svn path=/trunk/; revision=8900
2003-10-31From Scott Emberley: support for reading Network Instruments version 9Guy Harris1-1/+7
capture files. svn path=/trunk/; revision=8840
2003-10-30From Marcel Holtmann: support for reading Linux Bluez Bluetooth stackGuy Harris1-1/+7
"hcidump -w" traces. Note that Jesper Peterson contributed support for reading Endace ERF files. svn path=/trunk/; revision=8824
2003-10-01Have a pseudo-header for Ethernet packets, giving the size of the FCS -Guy Harris1-20/+1
0 means "there is no FCS in the packet data", 4 means "there is an FCS in the packet data", -1 means "I don't know whether there's an FCS in the packet data, guess based on the packet size". Assume that Ethernet encapsulated inside other protocols has no FCS, by having the "eth" dissector assume that (and not check for an Ethernet pseudo-header). Have "ethertype()" take an argument giving the FCS size; pass 0 when appropriate. Fix up Wiretap routines to set the pseudo-header. This means we no longer use the "generic" seek-and-read routine, so get rid of it. svn path=/trunk/; revision=8574
2003-08-26From Jesper Peterson: support for Endace ERF file format.Guy Harris1-1/+7
svn path=/trunk/; revision=8272
2003-08-23Use "file_access.c", not "file_io.c", as the latter is already in use inGuy Harris1-0/+703
a not-yet-ready-for-prime-time project of mine (fast random access to gzipped files, plus an mechanism to allow support for other forms of compression). svn path=/trunk/; revision=8221