Ethereal-dev: Re: [Ethereal-dev] substitute for inet(3) functions in ethereal

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 22 Jun 2002 02:01:24 -0700
On Sat, Jun 22, 2002 at 12:35:00AM -0700, Bill Fumerola wrote:
> i need to convert a network number into a string. i don't see any current
> use of inet_ntoa() (what i'm currently using) in the codebase, which i
> assume is because of portability issues. what should i be using?

"ip_to_str()" is generally what's used.

Note that if you put the network number into the protocol tree as an
FT_IPv4 field, the conversion will be done for you - although we should
probably have a separate type for network numbers, so that it doesn't
show up as

	Netmask: 255.255.255.0 (255.255.255.0)

(that's how IPv4 addresses are displayed if address-to-name resolution
is turned off - the host name replaces the first address if it's turned
on).

> lastly, README.developer needs to be tvbufified. not a big deal, but a
> small pain when you're trying to match up arguments.

What stuff is still un-tvbuffified?  Most if it should already be
tvbuffified.