aboutsummaryrefslogtreecommitdiffstats
path: root/summary.h
Commit message (Collapse)AuthorAgeFilesLines
* Allow bigger snapshot lengths for D-Bus captures.Guy Harris2017-06-051-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use WTAP_MAX_PACKET_SIZE_STANDARD, set to 256KB, for everything except for D-Bus captures. Use WTAP_MAX_PACKET_SIZE_DBUS, set to 128MB, for them, because that's the largest possible D-Bus message size. See https://bugs.freedesktop.org/show_bug.cgi?id=100220 for an example of the problems caused by limiting the snapshot length to 256KB for D-Bus. Have a snapshot length of 0 in a capture_file structure mean "there is no snapshot length for the file"; we don't need the has_snap field in that case, a value of 0 mean "no, we don't have a snapshot length". In dumpcap, start out with a pipe buffer size of 2KB, and grow it as necessary. When checking for a too-big packet from a pipe, check against the appropriate maximum - 128MB for DLT_DBUS, 256KB for everything else. Change-Id: Ib2ce7a0cf37b971fbc0318024fd011e18add8b20 Reviewed-on: https://code.wireshark.org/review/21952 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit d0865fd619454a9ac06b1c7d287dc438aff50bb0) Reviewed-on: https://code.wireshark.org/review/21955
* Directly use wtap_opttypes calls to fetch SHB options.Guy Harris2016-06-061-5/+0
| | | | | | | | | | | | | | | | | Don't put them in the summary structure; the summary routines should calculate summary statistics, not dig up every bit of information that *could* appear in a summary. Instead, have the GUI code call wtap_file_get_shb() to get the SHB information and call wtap_optionblock_get_option_string() to fetch the option values. Move the option code definitions into wtap_opttypes.h, as they're used by the API. Change-Id: Icef11f5fb30fdc3df1bb0208aae9ed0aebaf0182 Reviewed-on: https://code.wireshark.org/review/15748 Reviewed-by: Guy Harris <guy@alum.mit.edu>
* Always put editor-modelines at the end of the file ...Bill Meier2014-10-141-3/+3
| | | | | | | | | | ... to ensure that there are no potential issues with respect to editors limiting the number of lines scanned at the end of the file when checking for editor modelines. Change-Id: Ic85cbb108bb5159d6ec4116fea11f5eebb4e44a4 Reviewed-on: https://code.wireshark.org/review/4688 Reviewed-by: Bill Meier <wmeier@newsguy.com>
* Add editor modelines; Adjust whitespace as needed.Bill Meier2014-10-121-48/+61
| | | | | | Change-Id: I4da7b335d905dbca10bbce03aa88e1cdeeb1f8ad Reviewed-on: https://code.wireshark.org/review/4626 Reviewed-by: Bill Meier <wmeier@newsguy.com>
* Move capture.[ch] to libui.Guy Harris2014-06-301-1/+1
| | | | | | Change-Id: I86e7e781cc9e14abab0374a18b95438529b046f0 Reviewed-on: https://code.wireshark.org/review/2711 Reviewed-by: Guy Harris <guy@alum.mit.edu>
* Remove all $Id$ from top of fileAlexis La Goutte2014-03-041-2/+0
| | | | | | | | | | (Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
* Make the stuff in summary.h usable from C++ code.Guy Harris2013-05-221-0/+8
| | | | svn path=/trunk/; revision=49496
* Fix a bunch of warnings.Guy Harris2012-12-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
* Update Free Software Foundation address.Jakub Zawadzki2012-06-281-1/+1
| | | | | | (COPYING will be updated in next commit) svn path=/trunk/; revision=43536
* For a capture file, keep an array of all encapsulation types seen.Guy Harris2012-06-151-1/+2
| | | | | | | | | Show all of them in the summary dialog; we will be using it in the future to figure out what capture file formats we can write to (just because a capture file format supports per-packet encapsulations, that doesn't mean that it supports *all possible* encapsulations). svn path=/trunk/; revision=43278
* Don't use pcap LINKTYPE_ values in the iface_options structure, useGuy Harris2012-05-281-1/+1
| | | | | | | | | | | | | | Wiretap encapsulation values; rename the field in question encap_type to emphasize that. (Code that looks at that field already assumes it's a Wiretap encapsulation value.) For live captures, map the LINKTYPE_ value to a Wiretap encapsulation value. wtap_encap_string() never returns NULL, so don't check for a null return value. svn path=/trunk/; revision=42871
* Clean up indentation (use spaces, not tabs).Guy Harris2012-05-271-46/+46
| | | | svn path=/trunk/; revision=42870
* Use cf_update_capture_comment() to save the capture comment (instead ofJeff Morriss2012-05-241-7/+0
| | | | | | | | summary_update_comment() which is no longer necessary). cf_update_capture_comment() has the advantage that it doesn't mark the file as unsaved unless the comment actually changed. svn path=/trunk/; revision=42832
* Keep track, in Wiretap, of whether the file is compressed, and provideGuy Harris2012-05-241-1/+2
| | | | | | | | | | | an API to fetch that. When doing "Save" on a compressed file, write it out compressed. In the Statistics -> Summary dialog and in capinfos, report whether the file is gzip-compressed. svn path=/trunk/; revision=42818
* If we have one ISB, display the droped count from it.Anders Broman2012-03-151-8/+9
| | | | svn path=/trunk/; revision=41561
* Make it possible to edit capture commentsAnders Broman2012-02-261-6/+8
| | | | svn path=/trunk/; revision=41193
* Suppress invalid or non-meaningful statistics - for example, withoutGuy Harris2012-02-261-21/+24
| | | | | | | | | time stamps on all packets in a set, you can't determine the start and end time of the packets in the set (even one timestampless packet throws the determination off - was that packet before the first time-stamped or after the last time-stamped packet, or between them?). svn path=/trunk/; revision=41187
* Add SHB info to SummaryAnders Broman2012-02-231-0/+5
| | | | svn path=/trunk/; revision=41167
* Have the used interfaces show up if number of interfaces > 0.Anders Broman2012-02-231-29/+29
| | | | | | (pcapng file). svn path=/trunk/; revision=41163
* Don't show interface info when loading a capture file.Michael Tüxen2011-07-151-1/+1
| | | | svn path=/trunk/; revision=38051
* Add initial support for multiple interfaces. More to come afterMichael Tüxen2011-07-051-3/+13
| | | | | | | | the capture options dialog box supports also multiple interfaces. This patch has been developed by Irene Ruengeler. svn path=/trunk/; revision=37904
* Added "Ignore Packet" menu items to the main menu.Stig Bjørlykke2009-12-171-0/+1
| | | | | | Show ignored packages in the summary dialog. svn path=/trunk/; revision=31289
* Use a more accurate variable name for the wiretap file type. Add the fileGerald Combs2008-10-141-1/+2
| | | | | | encapsulation to the summary display. svn path=/trunk/; revision=26459
* Summary enhancements:Stig Bjørlykke2007-11-281-0/+3
| | | | | | | | | | - Added traffic statistics for marked packages. - Do not show Displayed column unless using it. - Removed Marked packets line, as this info is in the marked packets column. Will add documentation changes if keeping this feature. svn path=/trunk/; revision=23633
* change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping2006-11-051-1/+1
| | | | | | | | handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* remove dependencies to pcap.h, so getting an idea what needs to be done by ↵Ulf Lamping2006-02-171-1/+0
| | | | | | | | dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff svn path=/trunk/; revision=17327
* Make the counters in the summary 64-bit, so they don't overflow onGuy Harris2005-07-081-3/+3
| | | | | | Really Big Captures. svn path=/trunk/; revision=14875
* - pcap.h needs to be included before capture.hJörg Mayer2005-03-071-0/+1
| | | | | | | - As capture.h is empty without libpcap defined, only include it in that case and don't protect the file internally against libpcap any more. svn path=/trunk/; revision=13648
* minor code cleanupUlf Lamping2005-02-061-1/+3
| | | | svn path=/trunk/; revision=13321
* another two steps towards privilege seperation:Ulf Lamping2005-02-061-1/+12
| | | | | | | | | move another two capture related fields (iface and cfilter) from cfile to capture_opts also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this. svn path=/trunk/; revision=13320
* remove #include "globals.h" from summary.c, as it's a bad idea for multiple ↵Ulf Lamping2005-02-041-1/+1
| | | | | | | | capture files. If a summary user would like to get a summary, it should know the file of *which* it needs the summary. svn path=/trunk/; revision=13291
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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
* From Jean-Michel Fayard: show in Tools:Summary window statistics aboutGuy Harris2003-09-021-4/+6
| | | | | | | | | | | packets that passed the current display filter, as well as about the entire capture. Document the Tools:Summary item in the man page. Update Gerald's e-mail address. svn path=/trunk/; revision=8344
* Have Wiretap set the snapshot length to 0 if it can't be derived fromGuy Harris2002-02-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. svn path=/trunk/; revision=4709
* In Ethereal, attempt to get the packet statistics from libpcap whenGuy Harris2001-02-111-2/+3
| | | | | | | | | | | | capturing; if we succeed, display the packet drops count as the "Drops" value in the status line and as the "Dropped packets" statistics in the summary dialog box, otherwise don't display it at all. In Tethereal, attempt to get the packet statistics from libpcap when capturing; if we succeed, and if there were any dropped packets, print out the count of dropped packets when the capture finishes. svn path=/trunk/; revision=3016
* Add the number of marked packets in the summary window.Laurent Deniel2000-08-211-1/+2
| | | | svn path=/trunk/; revision=2323
* Move GTK code out of summary.c and into gtk/summary_dlg.cGilbert Ramirez1999-12-101-10/+19
| | | | | | | | | | | | summary.c now provides a struct of info (see summary.h) Changed the name of the summary dialogue callback (hence the change in menu.c), and added a close button to the dialogue. Moved #include <gtk/gtk.h> out of print.c and into prefs.h where it was needed for GdkColor. svn path=/trunk/; revision=1273
* Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree andGilbert Ramirez1999-07-131-2/+2
| | | | | | | 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
* Created a new protocol tree implementation and a new display filterGilbert Ramirez1999-07-071-2/+2
| | | | | | | mechanism that is built into ethereal. Wiretap is now used to read all file formats. Libpcap is used only for capturing. svn path=/trunk/; revision=342
* Added Aaron Hillegass' summary dialogue. We're ignoring the problem withGilbert Ramirez1999-06-221-0/+46
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