forked from osmocom/wireshark
Presumably the intent is to dump *non*-dummy entries.
I.e., presumably the intent is to dump *resolved* hosts, rather than *unresolved* hosts where there's no known host name and the name field is a string form of the address (the premise being that looking the address up in the hash table repeatedly, and using the already-generated string, will be faster than generating the string repeatedly). Change-Id: Iad1beb1d5f9cd9ed92bad5386111cb659614ee4d Reviewed-on: https://code.wireshark.org/review/5455 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
da5487ff49
commit
4d55e1f455
|
@ -51,7 +51,7 @@ ipv4_hash_table_print_resolved(gpointer key _U_, gpointer value, gpointer user_d
|
|||
{
|
||||
hashipv4_t *ipv4_hash_table_entry = (hashipv4_t *)value;
|
||||
|
||||
if ((ipv4_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY) == DUMMY_ADDRESS_ENTRY) {
|
||||
if (!(ipv4_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)) {
|
||||
printf("%s\t%s\n",
|
||||
ipv4_hash_table_entry->ip,
|
||||
ipv4_hash_table_entry->name);
|
||||
|
@ -63,7 +63,7 @@ ipv6_hash_table_print_resolved(gpointer key _U_, gpointer value, gpointer user_d
|
|||
{
|
||||
hashipv6_t *ipv6_hash_table_entry = (hashipv6_t *)value;
|
||||
|
||||
if ((ipv6_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY) == DUMMY_ADDRESS_ENTRY) {
|
||||
if (!(ipv6_hash_table_entry->flags & DUMMY_ADDRESS_ENTRY)) {
|
||||
printf("%s\t%s\n",
|
||||
ipv6_hash_table_entry->ip6,
|
||||
ipv6_hash_table_entry->name);
|
||||
|
|
Loading…
Reference in New Issue