The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / summary.h @ master

History | View | Annotate | Download (4.51 KB)

# Date Author Comment
ad1391aa 06/30/2014 01:38 AM Guy Harris

Move capture.[ch] to libui.

Change-Id: I86e7e781cc9e14abab0374a18b95438529b046f0
Reviewed-on: https://code.wireshark.org/review/2711
Reviewed-by: Guy Harris <>

29659139 03/04/2014 09:27 AM Alexis La Goutte

Remove all $Id$ from top of file

(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 <>

be5b1475 05/22/2013 04:21 AM Guy Harris

Make the stuff in summary.h usable from C++ code.

svn path=/trunk/; revision=49496

8ed7a73e 12/26/2012 12:57 AM Guy Harris

Fix a bunch of warnings.

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....

bf81b42e 06/28/2012 06:56 PM Jakub Zawadzki

Update Free Software Foundation address.

(COPYING will be updated in next commit)

svn path=/trunk/; revision=43536

d1128f64 06/15/2012 07:54 PM Guy Harris

For a capture file, keep an array of all encapsulation types seen.

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...

53375198 05/27/2012 08:31 PM Guy Harris

Don't use pcap LINKTYPE_ values in the iface_options structure, use
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...

fb68fa84 05/27/2012 07:50 PM Guy Harris

Clean up indentation (use spaces, not tabs).

svn path=/trunk/; revision=42870

a4bbd979 05/24/2012 02:59 PM Jeff Morriss

Use cf_update_capture_comment() to save the capture comment (instead of
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

cf6d9841 05/24/2012 01:05 AM Guy Harris

Keep track, in Wiretap, of whether the file is compressed, and provide
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....

fb0fec7c 03/15/2012 10:33 AM Anders Broman

If we have one ISB, display the droped count from it.

svn path=/trunk/; revision=41561

38c69c84 02/26/2012 12:04 PM Anders Broman

Make it possible to edit capture comments

svn path=/trunk/; revision=41193

30b86b78 02/26/2012 03:02 AM Guy Harris

Suppress invalid or non-meaningful statistics - for example, without
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...

b5a2ba98 02/23/2012 04:29 PM Anders Broman

Add SHB info to Summary

svn path=/trunk/; revision=41167

286f3425 02/23/2012 10:40 AM Anders Broman

Have the used interfaces show up if number of interfaces > 0.
(pcapng file).

svn path=/trunk/; revision=41163

b30c60d2 07/15/2011 04:45 PM Michael Tüxen

Don't show interface info when loading a capture file.

svn path=/trunk/; revision=38051

cb90aa79 07/05/2011 04:34 PM Michael Tüxen

Add initial support for multiple interfaces. More to come after
the capture options dialog box supports also multiple interfaces.

This patch has been developed by Irene Ruengeler.

svn path=/trunk/; revision=37904

ef92b4ec 12/17/2009 07:05 AM Stig Bjørlykke

Added "Ignore Packet" menu items to the main menu.
Show ignored packages in the summary dialog.

svn path=/trunk/; revision=31289

c99312da 10/14/2008 06:55 PM Gerald Combs

Use a more accurate variable name for the wiretap file type. Add the file
encapsulation to the summary display.

svn path=/trunk/; revision=26459

6e39bc94 11/27/2007 08:09 PM Stig Bjørlykke

Summary enhancements:
- 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

59d6c8ea 11/05/2006 05:46 PM Ulf Lamping

change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.

Please distclean Win32 builds!

svn path=/trunk/; revision=19814

89f022b1 05/21/2006 01:12 AM Ronnie Sahlberg

name change

svn path=/trunk/; revision=18197

79053183 02/16/2006 09:18 PM Ulf Lamping

remove dependencies to pcap.h, so getting an idea what needs to be done by 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

979511b3 07/08/2005 05:12 AM Guy Harris

Make the counters in the summary 64-bit, so they don't overflow on
Really Big Captures.

svn path=/trunk/; revision=14875

58d8f2f6 03/07/2005 05:19 AM Jörg Mayer

- pcap.h needs to be included before capture.h
- 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

1749a91a 02/06/2005 04:34 PM Ulf Lamping

minor code cleanup

svn path=/trunk/; revision=13321

3a63719e 02/06/2005 04:20 PM Ulf Lamping

another two steps towards privilege seperation:

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....

69e94faf 02/04/2005 02:29 PM Ulf Lamping

remove #include "globals.h" from summary.c, as it's a bad idea for multiple 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

8a8b8834 07/17/2004 08:24 PM Guy Harris

Set the svn:eol-style property on all text files to "native", so that
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...

71034c5a 09/02/2003 06:10 PM Guy Harris

From Jean-Michel Fayard: show in Tools:Summary window statistics about
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

89a4acb4 02/08/2002 05:07 AM Guy Harris

Have Wiretap set the snapshot length to 0 if it can't be derived from
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...

bf0a3a32 02/11/2001 04:28 AM Guy Harris

In Ethereal, attempt to get the packet statistics from libpcap when
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....

05984d23 08/21/2000 02:20 PM Laurent Deniel

Add the number of marked packets in the summary window.

svn path=/trunk/; revision=2323

71b7cd50 12/09/1999 11:21 PM Gilbert Ramirez

Move GTK code out of summary.c and into gtk/summary_dlg.c
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...

57e49071 07/12/1999 11:08 PM Gilbert Ramirez

Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree and
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

07f42b5b 07/07/1999 06:52 PM Gilbert Ramirez

Created a new protocol tree implementation and a new display filter
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

7ea29fb8 06/22/1999 06:02 PM Gilbert Ramirez

Added Aaron Hillegass' summary dialogue. We're ignoring the problem with
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