From: Danny Mayer Date: Mon, 1 Dec 2003 03:23:45 +0000 (-0500) Subject: For KAME we need to zero out a couple of bytes in the address X-Git-Tag: NTP_4_2_3~193^2~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79188f5ed97a514edc22ffbfcd25bdfe3645a9f5;p=thirdparty%2Fntp.git For KAME we need to zero out a couple of bytes in the address bk: 3fcab441JsxMlWd2QB0-OPJV5vfViQ --- diff --git a/libisc/interfaceiter.c b/libisc/interfaceiter.c index 37eff74065..1843bb1828 100644 --- a/libisc/interfaceiter.c +++ b/libisc/interfaceiter.c @@ -98,6 +98,8 @@ get_scopeid(unsigned int family, struct sockaddr *src) { u_int8_t *p; p = &((struct sockaddr_in6 *)src)->sin6_addr.s6_addr[0]; scopeid = ((u_int16_t)p[2] << 8) | p[3]; + dst->type.in6.s6_addr[2] = 0; + dst->type.in6.s6_addr[3] = 0; } else scopeid = 0; #else