aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-14 22:55:16 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-14 22:55:16 +0000
commite5f37774d1b3c1aaa3c065ab5557263003ff8b36 (patch)
treec5bdaf0b2162ccf51c04625eefbe3005e71e3523 /gtk/summary_dlg.c
parent783c0a4be3819454cf74516de6f82e05a67794d0 (diff)
Use a more accurate variable name for the wiretap file type. Add the file
encapsulation to the summary display. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26459 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index 6eb1b64ff2..d8cdd39588 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -158,9 +158,13 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
add_string_to_table(table, &row, "Length:", string_buff);
/* format */
- g_snprintf(string_buff, SUM_STR_MAX, "%s", wtap_file_type_string(summary.encap_type));
+ g_snprintf(string_buff, SUM_STR_MAX, "%s", wtap_file_type_string(summary.file_type));
add_string_to_table(table, &row, "Format:", string_buff);
+ /* encapsulation */
+ g_snprintf(string_buff, SUM_STR_MAX, "%s", wtap_encap_string(summary.encap_type));
+ add_string_to_table(table, &row, "Encapsulation:", string_buff);
+
if (summary.has_snap) {
/* snapshot length */
g_snprintf(string_buff, SUM_STR_MAX, "%u bytes", summary.snap);
@@ -384,7 +388,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
/* MBit per second */
if (seconds > 0) {
- g_snprintf(string_buff, SUM_STR_MAX, "%.3f",
+ g_snprintf(string_buff, SUM_STR_MAX, "%.3f",
/* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */
((gint64) summary.bytes) * 8.0 / (seconds * 1000.0 * 1000.0));
} else {