diff options
author | Anthony Coddington <anthony.coddington@endace.com> | 2017-06-09 20:03:38 +1200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-06-19 14:33:09 +0000 |
commit | 193cef0bcbcab25b95b4f124920d004ceaa7ae8a (patch) | |
tree | 6bcaa542e1a1bb57a6a9306775541718949a9f1a /ui/gtk/addr_resolution_dlg.c | |
parent | 6ecd6b816406597783ec662f00233f3a018553f7 (diff) |
Attempt to clean up addr_resolv flags by removing DUMMY_ADDRESS_ENTRY
Replace with easier to understand and already present NAME_RESOLVED given dummy address is always filled.
Change-Id: If8464f89e88722aac70689749fe0d4a31c119db2
Bug: 13798
Reviewed-on: https://code.wireshark.org/review/22110
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/addr_resolution_dlg.c')
-rw-r--r-- | ui/gtk/addr_resolution_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/addr_resolution_dlg.c b/ui/gtk/addr_resolution_dlg.c index 8a671fae4e..ebec831923 100644 --- a/ui/gtk/addr_resolution_dlg.c +++ b/ui/gtk/addr_resolution_dlg.c @@ -133,7 +133,7 @@ ipv4_hash_table_resolved_to_texbuff(gpointer key _U_, gpointer value, gpointer u GtkTextBuffer *buffer = (GtkTextBuffer*)user_data; hashipv4_t *ipv4_hash_table_entry = (hashipv4_t *)value; - if((ipv4_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)== 0){ + if((ipv4_hash_table_entry->flags & NAME_RESOLVED)){ g_snprintf(string_buff, ADDRESS_STR_MAX, "%s\t%s\n", ipv4_hash_table_entry->ip, ipv4_hash_table_entry->name); @@ -167,7 +167,7 @@ ipv6_hash_table_resolved_to_texbuff(gpointer key _U_, gpointer value, gpointer u GtkTextBuffer *buffer = (GtkTextBuffer*)user_data; hashipv6_t *ipv6_hash_table_entry = (hashipv6_t *)value; - if((ipv6_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)== 0){ + if((ipv6_hash_table_entry->flags & NAME_RESOLVED)){ g_snprintf(string_buff, ADDRESS_STR_MAX, "%s\t%s\n", ipv6_hash_table_entry->ip6, ipv6_hash_table_entry->name); |