diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-08-18 19:02:48 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-08-18 19:02:48 +0000 |
commit | ccb96fd73a17b294afe9f0511f708239fd787939 (patch) | |
tree | 0c489ddbc5b6579f92fbf410a13604aa68f8c1e1 /epan/addr_resolv.h | |
parent | 2cbe77751607fc3541333c83b59b84ba9af4d893 (diff) |
Use g_hastable() for IPv6 name reslution.
svn path=/trunk/; revision=51415
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index afe269166f..3308150e90 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -36,6 +36,7 @@ #include <epan/address.h> #include <epan/tvbuff.h> +#include <epan/to_str.h> #include "ws_symbol_export.h" #ifdef __cplusplus @@ -83,6 +84,14 @@ typedef struct hashipv4 { gchar name[MAXNAMELEN]; } hashipv4_t; + +typedef struct hashipv6 { + struct e_in6_addr addr; + gboolean is_dummy_entry; /* name is IPv6 address in colon format */ + gboolean resolve; /* */ + gchar ip6[MAX_IP6_STR_LEN]; /* XX */ + gchar name[MAXNAMELEN]; +} hashipv6_t; /* * Flag controlling what names to resolve. */ @@ -334,6 +343,9 @@ GHashTable *get_serv_port_hashtable(void); WS_DLL_PUBLIC GHashTable *get_ipv4_hash_table(void); +WS_DLL_PUBLIC +GHashTable *get_ipv6_hash_table(void); + /* * private functions (should only be called by epan directly) */ |