Fix "options inet6" breaking IPv4 name resolution (reported by Matt LaPlante, #17)

pull/34/head
David Schweikert 13 years ago
parent 6af4d71188
commit a19c537fc5

@ -4,6 +4,7 @@ UNRELEAESD David Schweikert <david@schweikert.ch>
* Add --enable-ipv4 and --enable-ipv6 options to configure (Niclas Zeising) * Add --enable-ipv4 and --enable-ipv6 options to configure (Niclas Zeising)
* Fix removing of unreachable hosts when doing loop (Thomas Liske, #13 #23) * Fix removing of unreachable hosts when doing loop (Thomas Liske, #13 #23)
* Fix -A for fping6 (reported by Matt LaPlante, #14) * Fix -A for fping6 (reported by Matt LaPlante, #14)
* Fix "options inet6" breaking IPv4 name resolution (reported by Matt LaPlante, #17)
* Set default data size to 56 bytes on all architectures (#18) * Set default data size to 56 bytes on all architectures (#18)
* Added contrib/fping.spec (Stephen Schaefer, #24) * Added contrib/fping.spec (Stephen Schaefer, #24)
* Convert man-page source to POD for easier maintenance * Convert man-page source to POD for easier maintenance

@ -2151,6 +2151,12 @@ void add_name( char *name )
}/* IF */ }/* IF */
}/* IF */ }/* IF */
if(host_ent->h_addrtype != AF_INET) {
print_warning("%s: IPv6 address returned by gethostbyname (options inet6 in resolv.conf?)\n", name );
num_noaddress++;
return;
}
host_add = ( struct in_addr* )*( host_ent->h_addr_list ); host_add = ( struct in_addr* )*( host_ent->h_addr_list );
if( host_add == NULL ) if( host_add == NULL )
{ {

Loading…
Cancel
Save