diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-11 19:02:26 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-11 19:02:26 +0000 |
commit | 93c9c4b0ff0bba4a94e05a7531a060d61e4c2765 (patch) | |
tree | 1a38e9d8cb1ca8e12dcd99d08ffbe9d9822ce504 /epan/addr_resolv.h | |
parent | f9834195edb78211c5cb5e281b49929bec6fc29e (diff) |
Use g_hashtable for IPv4 name resolution.
svn path=/trunk/; revision=51301
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index 04882b01b5..afe269166f 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -71,6 +71,19 @@ typedef struct serv_port { } serv_port_t; /* + * XXX Some of this is duplicated in addrinfo_list. We may want to replace the + * addr and name parts with a struct addrinfo or create our own addrinfo-like + * struct that simply points to the data below. + */ +typedef struct hashipv4 { + guint addr; + gboolean is_dummy_entry; /* name is IPv4 address in dot format */ + gboolean resolve; /* already tried to resolve it */ + gchar ip[16]; + gchar name[MAXNAMELEN]; +} hashipv4_t; + +/* * Flag controlling what names to resolve. */ WS_DLL_PUBLIC e_addr_resolve gbl_resolv_flags; @@ -318,6 +331,9 @@ GHashTable *get_eth_hashtable(void); WS_DLL_PUBLIC GHashTable *get_serv_port_hashtable(void); +WS_DLL_PUBLIC +GHashTable *get_ipv4_hash_table(void); + /* * private functions (should only be called by epan directly) */ |