aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
1999-09-29Add an item to the "File/Print" dialog box to ask that the full hex dataGuy Harris9-46/+85
of the packet be printed (this is only done if "Print detail" is selected; it should be grayed out of "Print summary" is selected). If that item is selected, suppress the hex printing of uninterpreted data items in the protocol tree. Move some GTK+ keys not used outside of "gtk/print_dlg.c" from "gtk/keys.h" into "gtk/print_dlg.c". svn path=/trunk/; revision=736
1999-09-29Fixed assert error reported by Dewi Morgan <dewim@sco.com>.Gilbert Ramirez2-2/+7
After some bad dfilter parses, the top-level dfilter tree (global_df->dftree) would erroneously be set to the last good dfilter_node that was parsed. Later, the non-NULLness of the dftree made us clear it.. really confusing GTK internals. After _that_, new GNodes created via g_node_new() would all have the same address! svn path=/trunk/; revision=735
1999-09-29Added and extended Santeri Paavolainen's <santtu@ssh.fi> patchGilbert Ramirez2-2/+8
to avoid applying NULL dfilters while setting colorization dfilters during an ongoing, screen-updating, capture. svn path=/trunk/; revision=734
1999-09-28"snoop" seems to treat "IEEE 802.3" and "Ethernet" datalink types theGuy Harris1-2/+2
same (which raises the question "so why the heck are there two types?" - note that the way you're supposed to tell Ethernet from 802.3 packets is by looking at the value of the type/length field; both of them can be transmitted on the same wire), so we'll treat them the same. svn path=/trunk/; revision=733
1999-09-27Replace the parens around 'control' in the two macros that I modified. IGilbert Ramirez1-3/+3
accidentally removed them. svn path=/trunk/; revision=732
1999-09-27Don't bother setting the length of the LLC header when we create the LLCGuy Harris1-2/+2
tree to anything other than 0, as we're going to change it to the right value once the control field has been parsed and we know the right value. svn path=/trunk/; revision=731
1999-09-27When checking whether a control field is for a UI frame, you have toGuy Harris1-2/+2
check all the bits of the control field (otherwise, you're just checking whether it's a U frame). svn path=/trunk/; revision=730
1999-09-27Mask out unnecessary bits in control guint16 in order to properlyGilbert Ramirez1-3/+3
compare against XDLC_I, XDLC_UI, and XDLC_U in XDLC_HAS_PAYLOAD() and XDLC_CONTROL_LEN() macros. svn path=/trunk/; revision=729
1999-09-26Handle the length of the LLC(+SNAP) header correctly for SNAP frames.Guy Harris1-6/+14
svn path=/trunk/; revision=728
1999-09-26Have "get_xdlc_control()" and "dissect_xdlc_control()" return theGuy Harris3-67/+71
xDLC control field, so that its caller can not only determine from it whether the frame has a payload, but can also determine how long the control field is. Put macros in "xdlc.h" to determine both of those. Have "capture_llc()" and "dissect_llc()" use that information appropriately. svn path=/trunk/; revision=727
1999-09-26Added name resolution in GUI part:Laurent Deniel5-8/+34
- Capture->Start->"Active name resolution" Allows the user to turn on/off name resolution during a live capture. - Display->Options->"Name resolution" Turn on/off name resolution for the displayed data (or during the -S mode). E.g. clicking on a packet captured with resolution disabled will resolve names in the detailed list if this option is set. And applying or resetting a display filter allows the update of the packet list as well. svn path=/trunk/; revision=726
1999-09-26Make Information Frame honor is_extended variable when reading Control.Gilbert Ramirez1-2/+5
svn path=/trunk/; revision=725
1999-09-25Squelch a (justified, although the child process *shouldn't* ever sendGuy Harris1-2/+2
us, at that point, a character with the 8th bit set) complaint about a "char" array subscript in an "isdigit()" call by making the character unsigned. svn path=/trunk/; revision=724
1999-09-24Changed version to 0.7.5Gilbert Ramirez3-2/+7
svn path=/trunk/; revision=722
1999-09-24DO NOT check for "unistd.h"; due to an unfortunate botch in the wayGuy Harris1-2/+43
"zlib" was built in FreeBSD 3.2 (and possibly other 4.4-Lite-derived BSDs), if HAVE_UNISTD_H is defined before "zlib.h" is included, the declaration of "gzseek()" in "zlib.h" expands to something that doesn't match what's in the OS's "zlib". svn path=/trunk/; revision=721
1999-09-24Fix it so that it builds with "--disable-zlib".Guy Harris12-29/+30
The "fh" member of a "wtap" structure points to something constructed from the "fd" member of that structure, so that closing the stream referred to by "fh" also closes the underlying file descriptor; get rid of an unnecessary close of "wth->fd". svn path=/trunk/; revision=720
1999-09-24Re-enable progress bar movement during display filter processing.Gilbert Ramirez1-7/+4
svn path=/trunk/; revision=718
1999-09-24Many more packaging changes. Lets compilation with new gtk subdirectoryGilbert Ramirez3-7/+14
work if build tree is different than source tree. Some wiretap files had to be added to the list of deliverables. svn path=/trunk/; revision=717
1999-09-24In "try_tempfile()", if the buffer is too short for the temporary fileGuy Harris1-1/+5
name, stuff as much of the name as will fit into the buffer before returning an error, so the error message that gets displayed isn't completely mangled. svn path=/trunk/; revision=716
1999-09-24Packaging changesGilbert Ramirez2-29/+2
svn path=/trunk/; revision=715
1999-09-24Moved version to 0.7.4; updated documentation.Gilbert Ramirez3-2/+137
svn path=/trunk/; revision=714
1999-09-23Dirk Bonne's fix to ICMP timestamp dissection.Guy Harris1-5/+3
svn path=/trunk/; revision=713
1999-09-23Close the capture file in "do_capture()", right before unlinking theGuy Harris2-15/+13
current capture file if it's a temporary file, out of paranoia (so that we don't get into a state where we have a capture file open but unlinked - it's probably harmless to be in that state, as the file will remain around until close, modulo NFS fun, and we may never be in that state for very long, but I'd rather have it obviously stated in the code). Remove the close in "capture()", and put one before the other call to "capture()", in "main_realize_cb()" (is that call necessary, e.g. if you pass "-r <filename>" *and* "-k", for some perverse reason, as command-line arguments?). If "cf.save_file" is non-null, free it before setting it, regardless of whether it refers to a temporary file name or not. svn path=/trunk/; revision=712
1999-09-23If we forcibly turn off "fork_mode" if the user doesn't enable "UpdateGuy Harris4-16/+13
list of packets in real time" in the "Capture/Start" dialog box, "ethereal -F" won't work - you get your choice of non-forked capture or "-S". Don't have "fork_mode" track "sync_mode"; instead, in those places where we check for "fork_mode", check for "sync_mode" as well. svn path=/trunk/; revision=711
1999-09-23In fork mode, close the capture file in "do_capture()", because theGuy Harris1-44/+63
child will nuke that file before we get to open the capture in "tail_cap_file()" - assuming we do, because the capture may not start. If we fail while writing to, or closing, a capture file we've opened for writing, don't treat that as a capture error, as we may have saved at least some packets to the capture file (that's the way it worked before my recent checkins). svn path=/trunk/; revision=710
1999-09-23Update to reflect changes to the "Capture/Start" and "Display/Options"Guy Harris1-5/+9
dialog boxes. svn path=/trunk/; revision=709
1999-09-23Move the toolkit-independent code to create a temporary capture file,Guy Harris5-327/+404
and to fork off and run a separate copy of "ethereal" for "-S" and "-F" captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c" and into a routine in "capture.c". If the attempt to create said temporary capture file fails, pop up a dialog box and don't do the capture. Have the child capture process send a message upstream after it either successfully starts the capture and syncs out the header of the capture file, or fails to start the capture; the message indicates whether it succeeded or failed, and, if it failed, includes a failure message. This: avoids the use of a signal, and thus means we don't have to worry about whether to capture the signal, or whether to start or stop capturing depending on whether this particular capture is in sync mode or not; lets us pop up the message box for the error in the parent process if we're in sync mode, rather than doing it in the child, which didn't work well. Add a check button to the Capture/Start dialog box, so that we can control, for each capture, whether it's to be done in sync mode or not. svn path=/trunk/; revision=708
1999-09-23Make the buffer into which we read from the sync pipe one byte biggerGuy Harris1-3/+3
than the size of the reads we do, so that we have an extra byte at the end into which we can stick a '\0' to guarantee null-termination of the buffer. When reading the capture file in "tail_cap_file()", use "file_open()" rather than "fopen()", so that we work correctly if we're using "zlib" to read capture files. svn path=/trunk/; revision=707
1999-09-23Give it an RCS ID.Guy Harris6-0/+54
svn path=/trunk/; revision=706
1999-09-23Fix the calculation of the temporary file name length inGuy Harris1-2/+2
"try_tempfile()" - the first component of the name comes from the "dir" argument, so use its length, not the length of the string in the buffer it should fill in (said buffer may contain garbage, which may not *be* a C string). svn path=/trunk/; revision=705
1999-09-23Give it an RCS ID.Guy Harris1-0/+2
svn path=/trunk/; revision=704
1999-09-23When reading a capture file, we can detect whether it's compressed orGuy Harris2-14/+14
not, so it's OK to use "zlib" to read capture files, as it handles uncompressed files correctly. When *writing* capture files, however, we can't detect automatically whether the user wanted to write the file out as a compressed file or not, so we should *NOT* use "zlib" until we add a flag to the API specifying whether to write the file out as a compressed file or not. Furthermore, the code in Ethereal that implements the "-S" flag depends on being able to get the "FILE *" for a capture file being written, so that it can "fflush()" it. svn path=/trunk/; revision=703
1999-09-23Get rid of unused variable.Guy Harris1-2/+1
svn path=/trunk/; revision=702
1999-09-23Adds progress bar functionality back for loading files (it was changed toAshok Narayanan6-41/+50
bounce bar for compressed file support). Note that the progress bar may not grow smoothly for compressed files, but it should be reasonably accurate for files which are large enough to matter. svn path=/trunk/; revision=701
1999-09-23"sync_mode" isn't used in "file.c", so there's no need to declare itGuy Harris1-2/+1
there (it's declared in "globals.h" in any case). svn path=/trunk/; revision=700
1999-09-22Fix to allow compressed file handling of Ascend capturesAshok Narayanan3-19/+30
svn path=/trunk/; revision=699
1999-09-22Another change to make packet-tr more intelligent with regard toGilbert Ramirez1-21/+34
short packets. Also increased RIF processing from 18 to 30 bytes of RIF, as I learned that the token-ring spec changed. Don't call next dissector if there are no more bytes in packet. svn path=/trunk/; revision=698
1999-09-22Documentation for compressed file supportAshok Narayanan1-1/+7
svn path=/trunk/; revision=697
1999-09-22Oops - new file for zLib commit which I missed out.Ashok Narayanan1-0/+55
svn path=/trunk/; revision=696
1999-09-22This commit contains support for reading capture files compressed usingAshok Narayanan18-175/+291
gzip. The zLib library is used for this purpose. If zLib is not available (or it's use is disabled by the --disable-zlib option to configure), you can still compile Ethereal but it will be unable to read compressed capture files. IMPORTANT: Now all file accesses to capture files should be done through special macros. Specifically, for any use of the following functions on capture files, replace them. The arguments for the right-side functions are exactly the same as for the original stdio functions. fopen file_open fdopen filed_open fread file_read fwrite file_write fseek file_seek fclose file_close ferror file_error svn path=/trunk/; revision=695
1999-09-21Add code to dissect MX and LOC records ("sparc.com" has both).Guy Harris1-1/+107
svn path=/trunk/; revision=694
1999-09-20Line up the "configure --help" message for "--with-ucdsnmp", and explainGuy Harris1-1/+1
what the argument to that flag does. svn path=/trunk/; revision=693
1999-09-19Added "Automatic scrolling in live capture".Laurent Deniel1-0/+2
This display option is disabled by default. svn path=/trunk/; revision=692
1999-09-19Added "Automatic scrolling in live capture".Laurent Deniel3-8/+28
This display option is disabled by default. svn path=/trunk/; revision=691
1999-09-19Fixed a bug found by Derek W Poon <dpoon@uclink.berkeley.edu>, where deletedGerald Combs1-2/+2
filter list items were improperly removed from the filter list. svn path=/trunk/; revision=690
1999-09-18Decrease DNS resolving timeout.Laurent Deniel1-2/+2
svn path=/trunk/; revision=689
1999-09-18Convert OSI CLNP into new protocol tree dissectors.Laurent Deniel1-356/+397
svn path=/trunk/; revision=688
1999-09-18Handle the missing FT_BYTES field type.Laurent Deniel3-4/+20
svn path=/trunk/; revision=687
1999-09-17When we see a delimiter tag, if we've seen one before, we know how muchGuy Harris1-16/+41
data corresponds to the attribute sequence belonging to the previous delimiter tag, so set the length of the item for the previous delimiter tag. The "end of attributes" tag means "no more attributes after this, just data"; dissect any stuff following it as data. svn path=/trunk/; revision=686
1999-09-17Add a "BYTES_ARE_IN_FRAME()" macro, to test whether there are aGuy Harris13-25/+583
specified number of bytes of captured data in the frame at the specified offset, and a "IS_DATA_IN_FRAME()" macro, to test whether there are any bytes of captured data in the frame at the specified offset, and convert some bounds checks to use them. Add a dissector for the Internet Printing Protocol. svn path=/trunk/; revision=685