aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-08-29 22:18:12 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-08-29 22:18:12 +0000
commitd0b80c82995871fd77a3c5f1eb6133a02ad54cd1 (patch)
tree29ec7806f2d50ea9cb0b6e57e4ba83c473fa8c5d /ui/gtk
parentf1ceee4a2cf3d6f02c7e7923a65652c02ba3973b (diff)
Revert revision=51577.
Ref https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9082 Since this commit the IP (source and destination) address in the GUI will be replaced with some date after I click on the entry, reverting this commit fixes the problem. This looks like a memory corruption. I imported an older pcap file. svn path=/trunk/; revision=51581
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/addr_resolution_dlg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/addr_resolution_dlg.c b/ui/gtk/addr_resolution_dlg.c
index 4cd82d7d1d..919e872120 100644
--- a/ui/gtk/addr_resolution_dlg.c
+++ b/ui/gtk/addr_resolution_dlg.c
@@ -172,8 +172,9 @@ ipv4_hash_table_to_texbuff(gpointer key, gpointer value, gpointer user_data)
hashipv4_t *ipv4_hash_table_entry = (hashipv4_t *)value;
int addr = *(int*)key;
- g_snprintf(string_buff, ADDRESS_STR_MAX, "Key:0x%x Name: %s\n",
+ g_snprintf(string_buff, ADDRESS_STR_MAX, "Key:0x%x IP: %s, Name: %s\n",
addr,
+ ipv4_hash_table_entry->ip,
ipv4_hash_table_entry->name);
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
@@ -187,7 +188,8 @@ ipv6_hash_table_to_texbuff(gpointer key _U_, gpointer value, gpointer user_data)
GtkTextBuffer *buffer = (GtkTextBuffer*)user_data;
hashipv6_t *ipv6_hash_table_entry = (hashipv6_t *)value;
- g_snprintf(string_buff, ADDRESS_STR_MAX, "Name: %s\n",
+ g_snprintf(string_buff, ADDRESS_STR_MAX, "IP: %s, Name: %s\n",
+ ipv6_hash_table_entry->ip6,
ipv6_hash_table_entry->name);
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);