diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-05-04 18:50:56 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-05-04 18:50:56 +0000 |
commit | 1d9b54fc072952758813d6cbce25bbe1ef8c2ac3 (patch) | |
tree | 1fc6bf8e2065199f49398fdfb4c3ef23ac1ab398 /tethereal.c | |
parent | 5cc92eeb86806e56d7524c4887716b688fbdd0ca (diff) |
Add support for asynchronous DNS updates using the GNU ADNS library.
Support can be enabled at configure time by using "--with-adns=DIR".
If support is enabled, async queries happen whenever host name resolution
is enabled. Do we need a separate preference for async queries?
Currently, only IPv4 reverse queries are supported. I can add IPv4 forward
lookup support, but I don't have any way to test IPv6 queries.
svn path=/trunk/; revision=7640
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c index 36b16bbbad..0456a72d8f 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1,6 +1,6 @@ /* tethereal.c * - * $Id: tethereal.c,v 1.181 2003/04/23 03:50:59 guy Exp $ + * $Id: tethereal.c,v 1.182 2003/05/04 18:50:51 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1765,6 +1765,11 @@ wtap_dispatch_cb_print(guchar *user, const struct wtap_pkthdr *phdr, fill_in_fdata(&fdata, cf, phdr, offset); + /* Grab any resolved addresses */ + if (g_resolv_flags) { + host_name_lookup_process(NULL); + } + passed = TRUE; if (cf->rfcode || verbose || num_tap_filters!=0) create_proto_tree = TRUE; |