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: Laurent Deniel <deniel@xxxxxxxxxxx>
Date: Thu, 15 Oct 1998 07:19:47 +0200
Guy Harris wrote:
> 
> >     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.

This is available throught resolv.h routines on all platforms 
(see manuf and ethers files).

Laurent.

--
Laurent DENIEL            | E-mail: deniel@xxxxxxxxxxx
Paris, FRANCE             |         deniel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
                          | WWW   : http://www.worldnet.fr/~deniel
    All above opinions are personal, unless stated otherwise.