diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-09-26 15:45:08 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-09-26 15:45:08 +0000 |
commit | b9c9b8bd31dba17a6883c8703c8f8e6bd86ed7b1 (patch) | |
tree | 2e96903f2e0e35aec4fa5cff5aa2c88792c27917 /ui/gtk/hostlist_table.c | |
parent | d70f25040654163f0056b17b320c843e2edd6328 (diff) | |
download | wireshark-b9c9b8bd31dba17a6883c8703c8f8e6bd86ed7b1.tar.gz |
Allow IPv6 addresses to be mapped.
svn path=/trunk/; revision=45149
Diffstat (limited to 'ui/gtk/hostlist_table.c')
-rw-r--r-- | ui/gtk/hostlist_table.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gtk/hostlist_table.c b/ui/gtk/hostlist_table.c index 85866ddcf6..ec436de4e8 100644 --- a/ui/gtk/hostlist_table.c +++ b/ui/gtk/hostlist_table.c @@ -1425,7 +1425,7 @@ init_hostlist_table(gboolean hide_ports, const char *table_name, const char *tap /* XXX - maybe we want to have a "Copy as CSV" stock button here? */ /*copy_bt = gtk_button_new_with_label ("Copy content to clipboard as CSV");*/ #ifdef HAVE_GEOIP - if( strstr(table_name, "IPv4") != NULL) { + if( strstr(table_name, "IPv4") || strstr(table_name, "IPv6") ) { bbox = dlg_button_row_new(GTK_STOCK_CLOSE, GTK_STOCK_COPY, WIRESHARK_STOCK_MAP, GTK_STOCK_HELP, NULL); } else { bbox = dlg_button_row_new(GTK_STOCK_CLOSE, GTK_STOCK_COPY, GTK_STOCK_HELP, NULL); @@ -1491,7 +1491,8 @@ ct_nb_map_switch_page_cb(GtkNotebook *nb, gpointer *pg _U_, guint page, gpointer if (pages && page > 0 && (int) page <= GPOINTER_TO_INT(pages[0]) && map_bt) { g_object_set_data(G_OBJECT(map_bt), HOST_PTR_KEY, pages[page]); - if(strstr( ((hostlist_table *)pages[page])->name, "IPv4") != NULL) { + if( strstr(((hostlist_table *)pages[page])->name, "IPv4") || + strstr(((hostlist_table *)pages[page])->name, "IPv6") ) { gtk_widget_set_sensitive(map_bt, TRUE); } else { gtk_widget_set_sensitive(map_bt, FALSE); |