aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-08-11 03:03:18 -0700
committerGuy Harris <guy@alum.mit.edu>2018-08-11 10:04:31 +0000
commit863ba5cd98978832ce5dc767f5f943c9a3e0c6f5 (patch)
tree148b3d8555662db87682f2fcdabf39270823b90c /ui
parente13989fd0a9fe464ee87d08ef570e2b43622b880 (diff)
Give a structure a better name.
It's not a set of command-line options, it's information that's used when showing summary information about the interface. Change-Id: Ie1c3d998a3cc7cd8b54945186098ebae726cef11 Reviewed-on: https://code.wireshark.org/review/29070 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/capture_file_properties_dialog.cpp4
-rw-r--r--ui/summary.c6
-rw-r--r--ui/summary.h4
3 files changed, 7 insertions, 7 deletions
diff --git a/ui/qt/capture_file_properties_dialog.cpp b/ui/qt/capture_file_properties_dialog.cpp
index 73171659d4..ac71ab20fd 100644
--- a/ui/qt/capture_file_properties_dialog.cpp
+++ b/ui/qt/capture_file_properties_dialog.cpp
@@ -296,8 +296,8 @@ QString CaptureFilePropertiesDialog::summaryToHtml()
}
for (guint i = 0; i < summary.ifaces->len; i++) {
- iface_options iface;
- iface = g_array_index(summary.ifaces, iface_options, i);
+ iface_summary_info iface;
+ iface = g_array_index(summary.ifaces, iface_summary_info, i);
/* interface */
QString interface_name(unknown);
diff --git a/ui/summary.c b/ui/summary.c
index 6725a2d608..3e35c3ad36 100644
--- a/ui/summary.c
+++ b/ui/summary.c
@@ -91,7 +91,7 @@ summary_fill_in(capture_file *cf, summary_tally *st)
{
frame_data *first_frame, *cur_frame;
guint32 framenum;
- iface_options iface;
+ iface_summary_info iface;
guint i;
wtapng_iface_descriptions_t* idb_info;
wtap_block_t wtapng_if_descr;
@@ -143,7 +143,7 @@ summary_fill_in(capture_file *cf, summary_tally *st)
st->drops = cf->drops;
st->dfilter = cf->dfilter;
- st->ifaces = g_array_new(FALSE, FALSE, sizeof(iface_options));
+ st->ifaces = g_array_new(FALSE, FALSE, sizeof(iface_summary_info));
idb_info = wtap_file_get_idb_info(cf->provider.wth);
for (i = 0; i < idb_info->interface_data->len; i++) {
wtapng_if_descr = g_array_index(idb_info->interface_data, wtap_block_t, i);
@@ -190,7 +190,7 @@ summary_fill_in(capture_file *cf, summary_tally *st)
void
summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_tally *st)
{
- iface_options iface;
+ iface_summary_info iface;
interface_t *device;
guint i;
diff --git a/ui/summary.h b/ui/summary.h
index c2af42b182..b5ee3abcf3 100644
--- a/ui/summary.h
+++ b/ui/summary.h
@@ -19,7 +19,7 @@
extern "C" {
#endif /* __cplusplus */
-typedef struct iface_options_tag {
+typedef struct iface_summary_info_tag {
char *name;
char *descr;
char *cfilter;
@@ -28,7 +28,7 @@ typedef struct iface_options_tag {
gboolean drops_known; /**< TRUE if number of packet drops is known */
int snap; /**< Maximum captured packet length; 0 if not known */
int encap_type; /**< wiretap encapsulation type */
-} iface_options;
+} iface_summary_info;
typedef struct _summary_tally {
guint64 bytes; /**< total bytes */