diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-01-30 08:46:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-01-30 08:46:29 +0000 |
commit | 95971cfb23189b4765dfafe3061f2f39cb02e939 (patch) | |
tree | 905de7f6d66da36137d1540badab22ed8cc19ac1 /epan/resolv.c | |
parent | b709dad78ffcbc1e581401eaef28d202a857035c (diff) |
IPv6 name resolution support on Solaris 8, from Heikki Vatiainen.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4627 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/resolv.c')
-rw-r--r-- | epan/resolv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/resolv.c b/epan/resolv.c index 706ef32e77..a89138d49c 100644 --- a/epan/resolv.c +++ b/epan/resolv.c @@ -1,7 +1,7 @@ /* resolv.c * Routines for network object lookup * - * $Id: resolv.c,v 1.20 2002/01/13 20:35:10 guy Exp $ + * $Id: resolv.c,v 1.21 2002/01/30 08:46:29 guy Exp $ * * Laurent Deniel <deniel@worldnet.fr> * @@ -1086,7 +1086,11 @@ extern const guchar *get_hostname6(struct e_in6_addr *addr) #ifdef INET6 if (!(g_resolv_flags & RESOLV_NETWORK)) return ip6_to_str(addr); +#ifdef SOLARIS8_INET6 + if (IN6_IS_ADDR_LINKLOCAL((struct in6_addr*)addr) || IN6_IS_ADDR_MULTICAST((struct in6_addr*)addr)) +#else if (IN6_IS_ADDR_LINKLOCAL(addr) || IN6_IS_ADDR_MULTICAST(addr)) +#endif return ip6_to_str(addr); #endif |