Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] Re: [Ethereal-cvs] rev 14523: /trunk/epan/: proto.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 02 Jun 2005 21:10:41 +0200
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