aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
AgeCommit message (Collapse)AuthorFilesLines
1999-07-13Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree andGilbert Ramirez1-7/+1
display filter code, which uses features in GLIB-1.2.x), I removed the vestigial code supporting old 1.0.x and 1.1.x GTK+ versions. svn path=/trunk/; revision=360
1999-07-09Added the ability to create a read-only ethereal, i.e., one thatGilbert Ramirez1-3/+5
doesn't link with libpcap, so no packet captures can be made. The "--disable-pcap" option has been added to the configure script. Docs have been updated. And the string buffer size in the simple_dialog() has been doubled so that Johan's e-mail address in the "About" dialogue window doesn't get chopped off. svn path=/trunk/; revision=351
1999-06-22Added Aaron Hillegass' summary dialogue. We're ignoring the problem withGilbert Ramirez1-1/+3
NetMon statistic packets for now. We might fix that problem with wiretap, either filtering out those packets, and/or providing the summary information through a new wiretap API. svn path=/trunk/; revision=326
1999-06-21Found some erroneous usages of gtk_signal_connect_object. I always wonderedGilbert Ramirez1-19/+14
why I had to swap fields (data = w) in some of the callback functions when I added support for gtk+-1.1. Because of the use of gtk_signal_connect_object, the wrong value was being sent to the callback function. We were just lucky that with gtk+-1.0 it worked. gtk_signal_connect_object is for use with callbacks that take one argument. gtk_signal_connect is for use with callbacks that take two arguments. svn path=/trunk/; revision=324
1999-06-19Added "Capture" and "Display" menus; "Capture" has a "Start" item, whichGuy Harris1-51/+14
is the same as "Tools/Capture", and "Display" has an "Options" item, which pops up a dialog box to let you change the "default" time-stamp column display format on the fly (the "default" is what the "-t" command-line option sets), and have the display change when you do that. Made infrastructure changes to make the immediate display update work. Removed some unused functions, declared some functions used only in the file in which they're defined "static", and removed some unnecessary #includes. svn path=/trunk/; revision=317
1999-06-12Improve the alert boxes put up for file open/read/write errors. (SomeGuy Harris1-8/+21
influence came from http://developer.apple.com/techpubs/mac/HIGuidelines/HIGuidelines-232.html which has a section on dialog box and alert box messages. However, we're largely dealing with technoids, not with The Rest Of Us, so I didn't go as far as one perhaps should.) Unfortunately, it looks like it's a bit more work to arrange that, if you give a bad file name to the "-r" flag, the dialog box pop up only *after* the main window pops up - it has the annoying habit of popping up *before* the main window pops up, and sometimes getting *obscured* by it, when I do that. The removal of the dialog box stuff from "load_cap_file()" was intended to facilitate that work. (It might also be nice if, when an open from the "File/Open" menu item fails, we keep the file selection box open, and give the user a chance to correct typos, choose another file name, etc.) svn path=/trunk/; revision=310
1999-06-11Added PPPoE, PPTP, GRE, and ISAKMP dissectors.Gilbert Ramirez1-2/+11
svn path=/trunk/; revision=303
1999-06-05Don't "g_strdup()" what "gtk_entry_get_text()" returns as the contentsGuy Harris1-3/+2
of the packet count combo box; there's no need to do so (we don't remember the string, just its value when converted to a number), and, as we don't free what "g_strdup()" returns, and don't remember it to save it later, we leak memory. svn path=/trunk/; revision=302
1999-06-01When constructing the list for the "Count" combo box in the "Capture"Guy Harris1-2/+2
dialog box, put "0 (Infinite)" first, so that we default to that rather than to the number of packets in the last capture we read. svn path=/trunk/; revision=300
1999-05-11Live data capture and display enhancement that allows network capture andLaurent Deniel1-3/+96
display of fully decoded packets at the same time. Options added: -F : fork capture process -S : sync mode ala tail -f (implies -F) -f : filter expression -Q : exit after capture (implies -k) svn path=/trunk/; revision=276
1999-04-06Capturing packets from ethereal now saves the capture in an "anonymous" ↵Gilbert Ramirez1-54/+39
buffer. That is, it's a random name chosen by tempnam(), unknown to the user. If the user decides to save that trace, he then uses File | Save to save it to a file. File | Save As lets him make a copy of his named trace file as well. I also updated my e-mail address in the various credit locations. svn path=/trunk/; revision=242
1999-02-11Have MIN_PACKET_SIZE, rather than 1, be the minimum value in the spinGuy Harris1-3/+3
box for the capture size. svn path=/trunk/; revision=186
1999-02-11Make the minimum and maximum packet sizes #defines.Guy Harris1-6/+6
Crank the maximum packet size up to 65535 bytes. svn path=/trunk/; revision=185
1999-02-09When doing a capture, decode enough of the incoming packets to correctlyGuy Harris1-50/+40
update the packet counts and percentages in the dialog box popped up during a capture, even for non-Ethernet captures. svn path=/trunk/; revision=184
1999-02-02No need to disable filter-related widgets for packet capture if we'reGuy Harris1-8/+1
using wiretap - we use "libpcap" for packet capture, and it still lets you filter. svn path=/trunk/; revision=181
1998-12-29* Added Joerg Mayer's Vines patchGerald Combs1-1/+2
* Added Joerg to the AUTHORS file * Added Guy's bitfield decode patch * Fixed time output svn path=/trunk/; revision=142
1998-12-22Fixed more bugs with dialogues and gtk+-1.1.x.Gilbert Ramirez1-2/+8
svn path=/trunk/; revision=137
1998-12-22Stopped the "TCP Follow" screen from producing an error when usingGilbert Ramirez1-2/+2
wiretap and gtk+-1.1.x. I also added an #include to util.c to keep it from complaining about a lack of a definition of vsnprintf when compiling with gtk+-1.1.x. svn path=/trunk/; revision=136
1998-12-17A patch spread across many files to let Ethereal compile under GTK+-1.1.x.Gilbert Ramirez1-1/+2
Tests for GTK versions are done during compilation, not during "./configure". The big problems have been taken care of in this patch (functional change in the packet clist and conversion of menu_factory to item_factory), but plenty of smaller problems with dialogue boxes abound. I have fixed a small problem with file_open*(), but have left 2 comments in just in case I'm not going about this the right way. Can someone verify? svn path=/trunk/; revision=127
1998-11-18* Disable filter-related widgets if we're using wiretap.Gerald Combs1-1/+8
svn path=/trunk/; revision=105
1998-11-17Add a "acinclude.m4" file that defines a "AC_ETHEREAL_STRUCT_SA_LEN"Guy Harris1-2/+2
macro (modeled after similar macros provided with "autoconf") to check whether "struct sockaddr" has an "sa_len" member, and defines or undefines "HAVE_SA_LEN" appropriately. Use it instead of "AC_LBL_SOCKADDR_SA_LEN", and use "HAVE_SA_LEN" instead of "HAVE_SOCKADDR_SA_LEN". svn path=/trunk/; revision=96
1998-11-15Back out some changes accidentally commited by the previous checkin - IGuy Harris1-2/+2
forgot that CVS, unlike Perforce, doesn't let you edit the list of files it gives you in the editor and cause those files *not* to be committed, it requires you to specify the files to be committed if you only want some files committed. svn path=/trunk/; revision=92
1998-11-15Add support to wiretap for reading Sun "snoop" capture files.Guy Harris1-2/+2
That requires that, in the packet-reading loop, we pass to the callback routine the offset in the file of a packet's data, because we can no longer compute that offset by subtracting the size of the captured packet data from the offset in the file after the data was read - "snoop" may stick padding in after the packet data to align packet headers on 4-byte boundaries. Doing that required that we arrange that we do that for "libpcap" capture files as well; the cleanest way to do that was to write our own code for reading "libpcap" capture files, rather than using the "libpcap" code to do it. Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c", as they're not used elsewhere. If we're using wiretap, don't define in "file.h" stuff used only when we're not using wiretap. Update the wiretap README to reflect Gilbert's and my recent changes. Clean up some memory leaks in "wiretap/lanalyzer.c" and "wiretap/ngsniffer.c", where the capture-file-format-specific data wasn't freed if the open failed. svn path=/trunk/; revision=91
1998-10-28* Added preference file saves and reads.Gerald Combs1-2/+2
svn path=/trunk/; revision=75
1998-10-13Squelch a number of "-Wall" errors by:Guy Harris1-1/+7
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff used by the "snprintf()" *implementation*, but not stuff it *exports*); 2) creating a new "snprintf.h" to declare "vsnprintf()" and "snprintf()"; 3) removing an unused variable; 4) fixing a call to "add_item_to_tree()" to handle the possibility of "ntohl()" returning a "long" rather than an "int". svn path=/trunk/; revision=47
1998-10-12- Added match_strval function to packet.cGerald Combs1-75/+113
- Separated display and capture filters; rearranged some of the look and feel - Lots of other miscellaneous fixes and updates svn path=/trunk/; revision=38
1998-10-10* OSPF alignment fixes (Gerald)Gerald Combs1-2/+10
* FDDI support (Laurent, Guy) svn path=/trunk/; revision=36
1998-09-29Changes to capture.c and capture.h to support more detail in the capturehannes1-17/+44
window. Added basic counter (%) hooks for all currently supported base protocols. OSPF Counter added as an example. All of this has mainly cosmetic purposes. svn path=/trunk/; revision=34
1998-09-27Merged in a _huge_ patch from Guy Harris. It adds a time stap column,Gerald Combs1-1/+2
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
1998-09-16Added ID tags to the beginning of each source file.Gerald Combs1-0/+2
svn path=/trunk/; revision=7
1998-09-16Initial revisionGerald Combs1-0/+501
svn path=/trunk/; revision=2