Ethereal-dev: Re: [Ethereal-dev] Total indepedence of epan/ethereal.lib

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 14 Apr 2001 20:42:48 -0700
On Fri, Apr 13, 2001 at 10:06:27AM -0500, Jeff Foster wrote:
> I just committed some changes to make the capture preferences
> part of the preferences file.

...except that "Enable name resolution" isn't a "capture preference" in
the sense of a preference that affects only packet captures; it affects
name resolution *throughout Ethereal* - it's in the capture preferences
dialog so that you can change the setting of that preference before
starting a capture, rather than, say, getting stuck with having it on,
and thus potentially stuck with long delays when trying to lookup host
names from a dead DNS or NIS server, when the capture is read in after
it finishes (if it's not an "Update list of packets in real time"
capture) or while it's read in during the capture (if it is an "Update
list of packets in real time" capture).

In addition, the variable that actually controlled it is
"g_resolving_actif", and, if that's set, name lookups are done
regardless of the setting of "prefs.capture_name_resolv".

I've checked in a change to

	1) rename the preference to just "name_resolv" from
	   "capture_name_resolv"/"capture.name_resolv";

	2) replace all references to "g_resolving_actif" with references
	   to "prefs.name_resolv";

so that, for example, Ethereal doesn't ignore the "-n" flag (as was the
case before my change).