aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-08-18 19:02:48 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-08-18 19:02:48 +0000
commitccb96fd73a17b294afe9f0511f708239fd787939 (patch)
tree0c489ddbc5b6579f92fbf410a13604aa68f8c1e1 /epan/addr_resolv.h
parent2cbe77751607fc3541333c83b59b84ba9af4d893 (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.h12
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)
*/