aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-07-09 04:18:36 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-07-09 04:18:36 +0000
commit5a7e28ca4645f88850af498a9a28fa5dea0f14b4 (patch)
tree45c8b659a436d5f9f9942e24983e95bbc1430594 /summary.c
parent5617c183683f2e421aa2367cefdcc67f427c5a29 (diff)
Added the ability to create a read-only ethereal, i.e., one that
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
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/summary.c b/summary.c
index 85816a697a..3a7574f550 100644
--- a/summary.c
+++ b/summary.c
@@ -1,7 +1,7 @@
/* summary.c
* Routines for capture file summary window
*
- * $Id: summary.c,v 1.3 1999/07/07 22:52:00 gram Exp $
+ * $Id: summary.c,v 1.4 1999/07/09 04:18:36 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -33,7 +33,6 @@
#endif
#include <gtk/gtk.h>
-#include <pcap.h>
#include <stdlib.h>
#include <stdio.h>
@@ -280,6 +279,7 @@ traffic_bytes/seconds);
}
add_string_to_box(string_buff, capture_box);
+#ifdef HAVE_LIBPCAP
/* Capture filter */
if (cf.cfilter) {
snprintf(string_buff, SUM_STR_MAX, "Capture filter: %s", cf.cfilter);
@@ -287,6 +287,8 @@ traffic_bytes/seconds);
sprintf(string_buff, "Capture filter: none");
}
add_string_to_box(string_buff, capture_box);
+#endif
+
gtk_window_set_position(GTK_WINDOW(sum_open_w), GTK_WIN_POS_MOUSE);
gtk_widget_show(sum_open_w);
}