Ethereal-dev: Re: [ethereal-dev] Appletalk DDP and AARP support

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

From: guy@xxxxxxxxxx (Guy Harris)
Date: Wed, 14 Oct 1998 15:15:33 -0700 (PDT)
>     ether_to_str() and ip_to_str() convert bytes in the packet data
>     array to ethernet and IP addresses.

There's also "host_name_lookup()" for translating IP addresses to names
- or, if no name could be found, dotted-quad IP address strings.

On *some* platforms, at least, there are also routines to translate MAC
addresses to host names, if you have such a database handy; a routine
that, if such a routine is handy, uses it, and if it's missing or if the
attempt to use it failed, does "ether_to_str()", might be handy as well.