From d0b80c82995871fd77a3c5f1eb6133a02ad54cd1 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 29 Aug 2013 22:18:12 +0000 Subject: [PATCH] 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 --- ui/gtk/addr_resolution_dlg.c | 6 ++++-- 1 file 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);