aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
AgeCommit message (Collapse)AuthorFilesLines
2005-06-17- Write rf5 files (I don't think tektronix software will be able to read ↵Luis Ontanon1-1/+1
these, ethereal does) - change k12.atm.vci and k12.atm.vpi into atm.vci and atm.vpi svn path=/trunk/; revision=14682
2005-06-10Initial checkin of the 32 bit tektronix k12 binary format (rf5)Luis Ontanon1-2/+9
There is still much to do, but at the very least it can import files allowing the user to choose which protocols handle the diferent sources. svn path=/trunk/; revision=14606
2005-03-01The DBS Etherwatch file handler does look for a magic number (the wordGuy Harris1-1/+1
"ETHERWATCH"). svn path=/trunk/; revision=13567
2005-01-28From Yoshihiro Oyama: support "-" as a file name, referring to theGuy Harris1-4/+40
standard input. Opening it for random access isn't supported; we add a new error for that. svn path=/trunk/; revision=13189
2004-10-11From Mark C. Brown: add support for writing nettl files.Guy Harris1-2/+2
svn path=/trunk/; revision=12258
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-06-30On at least some platforms, a #define of O_BINARY is needed even ifGuy Harris1-1/+6
<fcntl.h> is included, as <fcntl.h> doesn't define it. svn path=/trunk/; revision=11276
2004-06-29define of O_BINARY not needed, if fcntl.h is includedUlf Lamping1-6/+1
other #include related cleanups svn path=/trunk/; revision=11272
2004-04-28From Joe Marcus Clarke: force the standard output to be in binary modeGuy Harris1-3/+6
on Windows. svn path=/trunk/; revision=10717
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