The attached patch will fix ethereal so it will only do network address
resolution when network address resolution is enabled. Even when the
RESOLV_NETWORK flag was set ethereal would try to resolve addresses in
the add_ether_byip function.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17227
f5534014-38df-0310-8fa8-
9805f1628bb7
/* first check that IP address can be resolved */
- if ((host = host_name_lookup(ip, &found)) == NULL)
+ if (!(g_resolv_flags & RESOLV_NETWORK) || ((host = host_name_lookup(ip, &found)) == NULL))
return;
/* ok, we can add this entry in the ethers hashtable */