Ethereal-dev: Re: [ethereal-dev] [mcr@xxxxxxxxxxxxxxxxxxxxxx: [tcpdump-workers] further notes

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

From: Juan Toledo <toledo@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Mar 2000 09:15:50 +0100
> Hugh>   Both you folks working on tcpdump and the ethereal folks need to
> Hugh> look at mtr ( http://www.bitwizard.nl/mtr/ ) and check out (or grab!)
> Hugh> the code for lazy DNS lookups, it's MUCH better then blocking or just
> Hugh> giving up and using dotted quads.

I already did for etherape. It's actuallly pretty simple to use. Just import the
dns.c file, use the init function and from them on use the dns_lookup functions.

There are a couple of things with it, though.

First, it is dependent on gdk_input_read, and I don't know how it is implementing
that file descriptor, perhaps it won't work on freebsd, as it happens with
the pcap fd.

Second: You have to give dns_lookup and host endian guint32, whereas for
ethereal native you were giving iptostr and network endian guint32.

Regards,
Juan.