summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/addr_resolv.c28
-rw-r--r--epan/addr_resolv.h8
2 files changed, 0 insertions, 36 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index 7d541c29d2..87762fdb9f 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -3236,34 +3236,6 @@ get_host_ipaddr6(const char *host, struct e_in6_addr *addrp)
return FALSE;
}
-/*
- * Find out whether a hostname resolves to an ip or ipv6 address
- * Return "ip6" if it is IPv6, "ip" otherwise (including the case
- * that we don't know)
- */
-const char *
-#ifdef HAVE_GETADDRINFO
-host_ip_af(const char *host)
-#else
-host_ip_af(const char *host _U_)
-#endif
-{
- const char *af = "ip";
-
-#ifdef HAVE_GETADDRINFO
- struct addrinfo hint, *result = NULL;
- memset(&hint, 0, sizeof(hint));
- hint.ai_family = AF_UNSPEC;
- if (getaddrinfo(host, NULL, &hint, &result) == 0) {
- if (result->ai_family == AF_INET6) {
- af = "ip6";
- }
- freeaddrinfo(result);
- }
-#endif
- return af;
-}
-
GHashTable *
get_manuf_hashtable(void)
{
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h
index 678dd8d9d5..4d265e394c 100644
--- a/epan/addr_resolv.h
+++ b/epan/addr_resolv.h
@@ -323,14 +323,6 @@ gboolean get_host_ipaddr(const char *host, guint32 *addrp);
WS_DLL_PUBLIC
gboolean get_host_ipaddr6(const char *host, struct e_in6_addr *addrp);
-/*
- * Find out whether a hostname resolves to an ip or ipv6 address
- * Return "ip6" if it is IPv6, "ip" otherwise (including the case
- * that we don't know)
- */
-WS_DLL_PUBLIC
-const char* host_ip_af(const char *host);
-
WS_DLL_PUBLIC
GHashTable *get_manuf_hashtable(void);