jdk/src/solaris/native/java/net/NetworkInterface.c
changeset 22605 dba3d6b22818
parent 22597 7515a991bb37
child 22646 5fa3669fd35d
equal deleted inserted replaced
22604:9b394795e216 22605:dba3d6b22818
  1263         }
  1263         }
  1264 
  1264 
  1265         if (ifreqP->ifr_addr.sa_family != AF_INET6)
  1265         if (ifreqP->ifr_addr.sa_family != AF_INET6)
  1266             continue;
  1266             continue;
  1267 
  1267 
       
  1268         if (ioctl(sock, SIOCGIFSITE6, (char *)&if2) >= 0) {
       
  1269             struct sockaddr_in6 *s6= (struct sockaddr_in6 *)&(ifreqP->ifr_addr);
       
  1270             s6->sin6_scope_id = if2.ifr_site6;
       
  1271         }
       
  1272 
  1268         /*
  1273         /*
  1269          * Add to the list
  1274          * Add to the list
  1270          */
  1275          */
  1271         ifs = addif(env, sock, ifreqP->ifr_name, ifs,
  1276         ifs = addif(env, sock, ifreqP->ifr_name, ifs,
  1272                     (struct sockaddr *)&(ifreqP->ifr_addr),
  1277                     (struct sockaddr *)&(ifreqP->ifr_addr),
  1273                      AF_INET6, 0);
  1278                     AF_INET6, 0);
  1274 
  1279 
  1275         /*
  1280         /*
  1276          * If an exception occurred then free the list
  1281          * If an exception occurred then free the list
  1277          */
  1282          */
  1278         if ((*env)->ExceptionOccurred(env)) {
  1283         if ((*env)->ExceptionOccurred(env)) {