aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/vms.c
AgeCommit message (Collapse)AuthorFilesLines
2009-03-09More 64-bit fixes.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27685 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-08strncpy -> g_strlcpyetxrab1-3/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25254 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵ulfl1-6/+6
handle files > 2GB correct. Please distclean Win32 builds! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19814 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25timestamp display precision:ulfl1-0/+1
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15534 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! ulfl1-3/+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... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15520 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-03Make editcap use wtap_read(); that eliminates the last user ofguy1-1/+1
wtap_loop(), so eliminate wtap_loop(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14006 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-01Get rid of warnings about shadowed variables (code was ok)jmayer1-15/+15
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12171 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-03Have "wtap_read()" set "wth->phdr.pkt_encap" to "wth->file_encap",guy1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10290 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-09Cast the arguments to <ctype.h> macros to "guchar", to squelchguy1-6/+6
"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-01-25Have the Wiretap open, read, and seek-and-read routines return, inguy1-15/+25
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 warningsjmayer1-5/+5
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
2003-05-27Make "vms_check_file_type()" seek back to the beginning of the line thatguy1-1/+14
matched if it succeeds, so that it gets re-read when we read the capture file - it's a line containing a time stamp for a packet, so we need to re-read it to get that time stamp. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7752 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-20From Martin Warnes: fix to check the "XXXtrace" part of the per-packetguy1-98/+121
line, not the "RCV packet" part, so that we recognize files even if they don't have an "RCV packet" line in the first 200 lines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7699 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-19From Martin Warnes: support for VMS UCX$TRACE output in wiretap.guy1-9/+42
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7692 f5534014-38df-0310-8fa8-9805f1628bb7
2003-01-17From Marc Milgram: e-mail address update.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6936 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-10"tm_isdst" must be set to -1 before "mktime()" is called, so thatguy1-2/+2
"mktime()" bases the DST-vs-non-DST decision on the date/time and on the current time zone. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6406 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6115 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-07Graeme Hewson noted that zlib has a bug wherein "gzseek()" doesn't setguy1-6/+3
the internal z_err value for the stream if an "fseek()" call it makes fails, so that if "gzerror()" is subsequently called, it returns Z_OK rather than an error. To work around this, we pass "file_seek()" an "int *err", and have the with-zlib version of "file_seek()" check, if "gzseek()" fails, whether the return value of "file_error()" is 0 and, if so, have it return "errno" instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5642 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-25From Marc Milgram: properly handle fragmented packets.guy1-14/+37
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5018 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-07Bug fix from Marc Milgram: occasionally the VMS parser would read offguy1-2/+2
the end of string, and find some old data that looked useful, but was bogus for the frame. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4897 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-05Make "wtap_seek_read()" return TRUE on success and FALSE on error, likeguy1-17/+16
"wtap_read()". Add some additional error checks to the Sniffer file reader. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4875 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-05Have "wtap_seek_read()" return 0 on success and -1 on failure, and takeguy1-9/+14
an "err" argument that points to an "int" into which to put an error code if it fails. Check for errors in one call to it, and note that we should do so in other places. In the "wtap_seek_read()" call in the TCP graphing code, don't overwrite "cfile.pseudo_header", and make the buffer into which we read the data WTAP_MAX_PACKET_SIZE bytes, as it should be. In some of the file readers for text files, check for errors from the "parse the record header" and "parse the hex dump" routines when reading sequentially. In "csids_seek_read()", fix some calls to "file_error()" to check the error on the random stream (that being what we're reading). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4874 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-04Check for errors in seeks, "tell"s, and "stat()"s/"fstat()"s.guy1-18/+49
For file types where we allocate private data, add "close" routines where they were missing, to free the private data. Also fix up the code to clean up after some errors by freeing private data where that wasn't being done. Get rid of unused arguments to "wtap_dump_open_finish()". Fix indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4857 f5534014-38df-0310-8fa8-9805f1628bb7
2002-03-02From Joerg Mayer: get rid of "-Wno-unused" flag in some configureguy1-2/+3
scripts, and check in changes to add _U_ to some unused arguments (some other should perhaps be used, so we leave the _U_ out so that the warnings serve as a reminder to check those). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4847 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-08Have Wiretap set the snapshot length to 0 if it can't be derived fromguy1-2/+2
reading the capture file. Have callers of "wtap_snapshot_length()" treat a value of 0 as "unknown", and default to WTAP_MAX_PACKET_SIZE (so that, when writing a capture file in a format that *does* store the snapshot length, we can at least put *something* in the file). If we don't know the snapshot length of the current capture file, don't display a value in the summary window. Don't use "cfile.snap" as the snapshot length option when capturing - doing so causes Ethereal to default, when capturing, to the snapshot length of the last capture file that you read in, rather than to the snapshot length of the last capture you did (or the initial default of "no snapshot length"). Redo the "Capture Options" dialog box to group options into sections with frames around them, and add units to the snapshot length, maximum file size, and capture duration options, as per a suggestion by Ulf Lamping. Also add units to the capture count option. Make the snapshot length, capture count, maximum file size, and capture duration options into a combination of a check box and a spin button. If the check box is not checked, the limit in question is inactive (snapshot length of 65535, no max packet count, no max file size, no max capture duration); if it's checked, the spinbox specifies the limit. Default all of the check boxes to "not checked" and all of the spin boxes to small values. Use "gtk_toggle_button_get_active()" rather than directly fetching the state of a check box. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4709 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-30Bug fixes from Marc Milgram.guy1-49/+46
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4632 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-15From Marc Milgram: fix to allow VMS TCPIPtrace files that don't haveguy1-2/+2
exactly 3 spaces before the word "TCPIPtrace" to be recognized. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4547 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-08From Marc Milgram: all packets in DBS Etherwatch and VMS TCPIPTRACEguy1-2/+2
captures are IP packets, so make the file encapsulation WTAP_ENCAP_RAW_IP rather than WTAP_ENCAP_PER_PACKET, so you can save those captures in other formats. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4503 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-24VMS TCPIPtrace efficiency improvments, from Marc Milgram.gerald1-7/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4446 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-18VMS TCPIPtrace wiretap module, from Marc Milgram.guy1-0/+412
Update the lists of known capture file formats in the Tethereal, editcap, and mergecap man pages to match the current list (as found in the Ethereal man page). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4039 f5534014-38df-0310-8fa8-9805f1628bb7