2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

1629. [func] dig now supports IPv6 scoped addresses with the

extended format in the local-server part. [RT #8753]
This commit is contained in:
Tatuya JINMEI 神明達哉
2004-05-15 03:37:34 +00:00
parent 48b492d73a
commit ec3f1d3517
7 changed files with 83 additions and 18 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: sockaddr.c,v 1.59 2004/03/05 05:10:49 marka Exp $ */
/* $Id: sockaddr.c,v 1.60 2004/05/15 03:37:33 jinmei Exp $ */
#include <config.h>
@@ -57,6 +57,10 @@ isc_sockaddr_equal(const isc_sockaddr_t *a, const isc_sockaddr_t *b) {
if (memcmp(&a->type.sin6.sin6_addr, &b->type.sin6.sin6_addr,
sizeof(a->type.sin6.sin6_addr)) != 0)
return (ISC_FALSE);
#ifdef ISC_PLATFORM_HAVESCOPEID
if (a->type.sin6.sin6_scope_id != b->type.sin6.sin6_scope_id)
return (ISC_FALSE);
#endif
if (a->type.sin6.sin6_port != b->type.sin6.sin6_port)
return (ISC_FALSE);
break;
@@ -86,6 +90,10 @@ isc_sockaddr_eqaddr(const isc_sockaddr_t *a, const isc_sockaddr_t *b) {
if (memcmp(&a->type.sin6.sin6_addr, &b->type.sin6.sin6_addr,
sizeof(a->type.sin6.sin6_addr)) != 0)
return (ISC_FALSE);
#ifdef ISC_PLATFORM_HAVESCOPEID
if (a->type.sin6.sin6_scope_id != b->type.sin6.sin6_scope_id)
return (ISC_FALSE);
#endif
break;
default:
if (memcmp(&a->type, &b->type, a->length) != 0)