diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-07-08 01:31:48 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-07-08 01:31:48 +0000 |
commit | 8f12c9d7d7b90c246e5d3000e17a5b83a2c0f340 (patch) | |
tree | b29df5a53a6b2060adbcefa7797c582965db1e44 /epan/prefs.c | |
parent | 10fa9baef2424463deeb5d15e4d19970ba2fe67f (diff) | |
download | wireshark-8f12c9d7d7b90c246e5d3000e17a5b83a2c0f340.tar.gz wireshark-8f12c9d7d7b90c246e5d3000e17a5b83a2c0f340.tar.bz2 wireshark-8f12c9d7d7b90c246e5d3000e17a5b83a2c0f340.zip |
First phase of fixing https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7380 :
Add a new name resolution option: whether or not use the configured (in the OS)
name resolver (e.g., DNS) to resolve network names. When this option is disabled
but network name resolution is enabled then Wireshark will resolve only those
names that it can from local sources. This includes (at least, AFAIK):
- name resolutions that Wireshark picks up on from DNS packets it decodes
- the "user hosts file" (~/.wireshark/hosts on *NIX)
- what Wireshark reads out of capture file (the PCAPNG name resolution block)
This new preference defaults to "use external resolvers" for backward
compatibility (so people turning on network name resolution will get the old
behavior).
This option can be set via Edit->Preferences and on the command line; there
remain several UIs (e.g., the "open capture file" dialog, the
View->Name Resolution menu, etc.) that don't have the new option yet.
Also expand on the "description" for the name resolution preferences: these
are used not only in the tooltips but are also written to the preferences
file. The previous text didn't include enough context when written do the
preferences file.
svn path=/trunk/; revision=43605
Diffstat (limited to 'epan/prefs.c')
-rw-r--r-- | epan/prefs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index 1ac65cdb7d..810995271d 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -2259,6 +2259,9 @@ string_to_name_resolve(char *string, e_addr_resolve *name_resolve) case 'n': name_resolve->network_name = TRUE; break; + case 'N': + name_resolve->use_external_net_name_resolver = TRUE; + break; case 't': name_resolve->transport_name = TRUE; break; |