diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-03-22 03:24:35 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-04-08 20:49:22 +0000 |
commit | c5782e0d412c38a7338a3f8862dee0c248aab227 (patch) | |
tree | 6d61f80782cfb65fd19ec05f31cb2eb4f192413e /epan/addr_resolv.c | |
parent | 57b2a84f3d900eb0b98157095c6aac07cec54fd9 (diff) | |
download | wireshark-c5782e0d412c38a7338a3f8862dee0c248aab227.tar.gz |
Replace and remove host_ip_af() function
Change-Id: I932c156cbc6883d1d63bf0457fd62cfb67c3340e
Reviewed-on: https://code.wireshark.org/review/14750
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 28 |
1 files changed, 0 insertions, 28 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) { |