Guy Harris wrote:
> Currently, the name resolution code returns a string for the address
> if it can't resolve the name, but at some point it might be useful to
> have it return NULL instead; that'd list it display only the address
> if it can't resolve the name or if name resolution is turned off
> (giving the raw data twice is redundant).
Yes, that's somewhat redundant.
But it should be visible whether name resolution is enabled or not.
So we might want to have something like the following:
If name resolution for that element is turned off:
Source: 1.2.3.4 [name resolution off]
if it's turned on, but could not resolve:
Source: 1.2.3.4 [name resolution failed]
if it's turned on and could be resolved (just like today):
Source: www.ethereal.com (1.2.3.4)
Of course, this had to be done for all types of name resolution we are
currently doing, which are quite a few ;-)
Any "even better" ideas?
Regards, ULFL