aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2004-06-30On at least some platforms, a #define of O_BINARY is needed even ifguy1-1/+6
<fcntl.h> is included, as <fcntl.h> doesn't define it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11276 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-29define of O_BINARY not needed, if fcntl.h is includedulfl1-6/+1
other #include related cleanups git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11272 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-16To return an EOF indication, return FALSE from the read routine *AND*guy1-1/+2
set "*err" to 0, rather than leaving what random value happened to be in "*err" there. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11158 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-07Add an encapsulation type for BACnet MS/TP, and map the newly-assignedguy3-4/+10
libpcap DLT_ value for BACnet MS/TP to it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11126 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-01It really helps when you change the default from gtk1 -> gtk2 in the topjmayer1-2/+2
level configure.in to mirror that change in wiretap. Otherwise people who have both versions of glib/gtk installed may see crashes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11049 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-28From Joe Marcus Clarke: force the standard output to be in binary modeguy1-3/+6
on Windows. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10717 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-14At last compiling on CygWin works again! Added the missing PCRE and GLIBobiot1-1/+9
libraries to libftypes. Provide caching of computed configure tests. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10600 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-02From Mark C. Brown: add support for FDDI and Token Ring cards.guy2-13/+63
Set the file encapsulation the same way it's done for iptrace captures - leave it as "unknown" to start with, and, for each packet we see, set it to the packet's encapsulation type if the file encapsulation type is unknown and set it to "per-packet" if the file encapsulation type is "known" but isn't the type of that packet, so files that have all the same type of packet have that type as the file type and packets that *don't* have all the same type of packet have "per-packet". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10543 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-02From Rolf Fiedler: fix a comment, and fix the code to get the packetguy1-3/+3
length. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10541 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-30From Albert Chin: "config.h" should come before all other #includes.guy1-4/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10528 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-27Some aclocal warning fixes during autogen.shjmayer1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10507 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-27From Mark C. Brown: add support for iether (dual-port gigabit) cards inguy2-2/+4
nettl files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10501 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-24Fix the CLEANFILES target so both static and shared libraries are cleaned.obiot1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10475 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-23Add support for DLT_APPLE_IP_OVER_IEEE_1394.guy3-6/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10446 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-23Clean up the code to check the file type.guy1-44/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10445 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-19In the read routine, set the 802.11 pseudo-header forguy1-1/+16
WTAP_ENCAP_PRISM_HEADER, WTAP_ENCAP_IEEE_802_11_WLAN_BSD, and WTAP_ENCAP_IEEE_802_11_WLAN_AVS. In the seek_read routine, set it for all 802.11 types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10404 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-17"esc_read()" is passed a FILE_T, not a FILE_T * - a FILE_T is a pointerguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10392 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-13Make libethereal and libwiretap shared libs.jmayer1-6/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10368 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-11Add support for DLT_ value 99, as used by the Axent Raptorguy3-4/+16
firewall/Symantec Enterprise Firewall. Thanks, Axent/Symantec, for not asking us for a DLT_ value and not telling us about the link-layer type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10361 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-06From Jeff Morriss: delete "ascend-grammar.c" and "ascend-grammar.h" withguy1-1/+5
"make maintainer-clean", as they're generated files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10336 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-04Get rid of an out-of-date comment.guy1-12/+3
We only appear to need autoconf 2.52, not 2.53. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10293 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-03Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",guy18-37/+37
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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10290 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-03Require autoconf 2.53 and automake 1.6jmayer1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10287 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-03Set the packet encapsulation value to the file encapsulation.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10285 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-19A DLT_ value of 13, in a Nokia-format capture, appears to be an ATMguy1-51/+193
capture of some sort. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10109 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-13Get rid of unused variables and #defines.guy1-7/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10059 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-12Use "guint8" for 8-bit binary data.guy1-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()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10050 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-12Note that 164 is reserved for Juniper chassis-internal meta-informationguy1-2/+7
(DLT_JUNIPER_MONITOR/LINKTYPE_JUNIPER_MONITOR). Fix a typo. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10046 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-11Map WTAP_ENCAP_IEEE_802_11_WITH_RADIO to DLT_IEEE802_11, for now; weguy1-4/+29
could probably map it to one of the many different 802.11+radio headers, but we should probably just have *one* Wiretap encapsulation for 802.11, with a radiotap-style list of attributes attached to it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10041 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-11From Rolf Fiedler: support for reading EyeSDN USB S0 trace files.guy7-5/+394
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10038 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-09Cast the arguments to <ctype.h> macros to "guchar", to squelchguy3-15/+16
"subscript has type `char'" warnings and to make the code work correctly if there are characters with the 8th bit set. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10010 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-09Add extra {} to "avoid ambiguous `else'", to quote the GCC warning thatguy1-3/+3
this squelches. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10009 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-08Move -pedantic back to extra-gcc-flags, as glib generates more warnings than ↵jmayer1-3/+3
our code git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10008 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-07Don't build as shared *and* static by defaultjmayer1-1/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10004 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-07Ignore byproducts of shared lib compilationjmayer1-0/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10003 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Whether frames in an AiroPeek V9 802.11 capture have 4 bytes of 0 or anguy2-19/+48
FCS at the end appears to depend on the network subtype value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10001 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06A MediaSubType value of 1 also means 802.11. (Is that what indicatesguy1-2/+2
whether there's an FCS or not?) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9995 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Make sure a packet has one and only one length field, one and only oneguy1-6/+44
timestamp lower field, and one and only one timestamp lower field. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9994 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06The time stamps in *Peek V9 files appear to be in nanoseconds from theguy1-12/+19
Windows FILETIME epoch, i.e. midnight, January 1, 1601. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9993 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Ethernet frames appear to have 4 bytes of 0 at the end, at least in theguy1-5/+20
captures I've seen. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9991 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06V9 format appears to be used by some versions of EtherPeek, too.guy2-87/+220
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9990 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Fix up a comment to note that this is also used for AiroPeek, and usedguy1-2/+9
only for versions 5, 6, and 7 of the file format. Add another comment explaining why this refers to "etherpeek" even though it's also used for AiroPeek and probably also TokenPeek. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9989 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-06Sort the link-layer type values a little better.guy1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9987 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-29The DLT_ value 127 is being used for the BSD radio header, and theguy3-50/+56
current CVS libpcap uses 163 for the AVS radio header (127 was never used for the AVS radio header). Redo the Wiretap encapsulation values for that (and shuffle them to put the 802.11 Wiretap values together). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9904 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-28From Tomas Kukosa: reserve private WTAP_ENCAP values and map them toguy3-4/+86
reserved private DLT_ values. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9892 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-27Supply a pseudo-header for all 802.11 packets; add an "fcs_len" field toguy5-49/+67
it, similar to the Ethernet pseudo-header's "fcs_len" field, and use it in the 802.11 dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9884 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-26Fix a compiler warning.guy1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9867 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-25Don't muck with the Ethernet pseudo-header if we have an 802.11 capture.guy1-1/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9857 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-25Have the Wiretap open, read, and seek-and-read routines return, inguy54-409/+564
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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9852 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-24Fix all fixable warningsjmayer7-26/+27
Move addional warnings from extra-gcc-checks to normal compilation flags git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9826 f5534014-38df-0310-8fa8-9805f1628bb7