aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-02 02:04:38 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-02 02:04:38 +0000
commit79c2223425e406816ea9f8eda1cc48cd9ac01835 (patch)
tree423e0a693f9339de2484a20ad5601f5ca18beb89 /summary.c
parent7bcc34708d05a59059d61f3e3690272961ef4937 (diff)
Check in Olivier Abad's patch to add dissectors for LAP-B and X.25, and
wiretap support for RADCOM Ltd.'s WAN/LAN analyzers (see http://www.radcom-inc.com/ ). Note: as I remember, IEEE 802.2/ISO 8022 LLC has somewhat of an SDLC flavor to it, just as I think LAP, LAPB, LAPD, and so on do, so we may be able to combine some of the LLC dissection and the LAPB dissection into common code that could, conceivably be used for other SDLC-flavored protocols. Make "S" a mnemonic for "Summary" in the "Tools" menu. Move the routine, used for the "Tools/Summary" display, that turns a wiretap file type into a descriptive string for it into the wiretap library itself, expand on some of its descriptions, and add an entry for files from a RADCOM analyzer. Have "Tools/Summary" display the snapshot length for the capture. svn path=/trunk/; revision=416
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c32
1 files changed, 6 insertions, 26 deletions
diff --git a/summary.c b/summary.c
index e147d7053e..e6d9418408 100644
--- a/summary.c
+++ b/summary.c
@@ -1,7 +1,7 @@
/* summary.c
* Routines for capture file summary window
*
- * $Id: summary.c,v 1.6 1999/07/13 03:08:06 gram Exp $
+ * $Id: summary.c,v 1.7 1999/08/02 02:04:27 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -83,29 +83,6 @@ extern capture_file cf;
/* Summary filter key */
#define E_SUM_FILT_TE_KEY "sum_filt_te"
-char * string_for_format(guint16 cd_t){
- switch (cd_t) {
- case WTAP_FILE_WTAP:
- return "wiretap";
- case WTAP_FILE_PCAP:
- return "pcap";
- case WTAP_FILE_LANALYZER:
- return "LanAlyzer";
- case WTAP_FILE_NGSNIFFER:
- return "Sniffer";
- case WTAP_FILE_SNOOP:
- return "snoop";
- case WTAP_FILE_IPTRACE:
- return "iptrace";
- case WTAP_FILE_NETMON:
- return "Network Monitor";
- case WTAP_FILE_NETXRAY:
- return "NetXray/Sniffer Pro";
- default:
- return "unknown";
- }
-}
-
double
secs_usecs( guint32 s, guint32 us) {
return (us / 1000000.0) + (double)s;
@@ -202,8 +179,11 @@ summary_prep_cb(GtkWidget *w, gpointer d) {
add_string_to_box(string_buff, file_box);
/* format */
- snprintf(string_buff, SUM_STR_MAX, "Format: %s",
-string_for_format(cf.cd_t));
+ snprintf(string_buff, SUM_STR_MAX, "Format: %s", cf.cd_t_desc);
+ add_string_to_box(string_buff, file_box);
+
+ /* snapshot length */
+ snprintf(string_buff, SUM_STR_MAX, "Snapshot length: %u", cf.snap);
add_string_to_box(string_buff, file_box);
/* Data frame */