aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-08-29 18:59:49 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-08-29 18:59:49 +0000
commit39a61a1680b5a7405d7e81f9c15903fc958cc0cd (patch)
tree4c3b66b00f2c5304399864875476d5a1e73205fe /ui/gtk
parentbc654875f03fef8248b06b4bdc8bd26df0a50211 (diff)
Don't store address in the hastable when name resolution is off.
svn path=/trunk/; revision=51577
Diffstat (limited to 'ui/gtk')
-rw-r--r--ui/gtk/addr_resolution_dlg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/gtk/addr_resolution_dlg.c b/ui/gtk/addr_resolution_dlg.c
index 919e872120..4cd82d7d1d 100644
--- a/ui/gtk/addr_resolution_dlg.c
+++ b/ui/gtk/addr_resolution_dlg.c
@@ -172,9 +172,8 @@ 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 IP: %s, Name: %s\n",
+ g_snprintf(string_buff, ADDRESS_STR_MAX, "Key:0x%x Name: %s\n",
addr,
- ipv4_hash_table_entry->ip,
ipv4_hash_table_entry->name);
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);
@@ -188,8 +187,7 @@ 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, "IP: %s, Name: %s\n",
- ipv6_hash_table_entry->ip6,
+ g_snprintf(string_buff, ADDRESS_STR_MAX, "Name: %s\n",
ipv6_hash_table_entry->name);
gtk_text_buffer_insert_at_cursor (buffer, string_buff, -1);