< prev index next >
src/java.base/share/classes/java/net/Inet6Address.java
Print this page
*** 505,515 ****
holder.init(hostName, family);
}
/* check the two Ipv6 addresses and return false if they are both
* non global address types, but not the same.
! * (ie. one is sitelocal and the other linklocal)
* return true otherwise.
*/
private static boolean isDifferentLocalAddressType(
byte[] thisAddr, byte[] otherAddr) {
--- 505,515 ----
holder.init(hostName, family);
}
/* check the two Ipv6 addresses and return false if they are both
* non global address types, but not the same.
! * (i.e. one is site-local and the other link-local)
* return true otherwise.
*/
private static boolean isDifferentLocalAddressType(
byte[] thisAddr, byte[] otherAddr) {
*** 681,691 ****
}
/**
* Utility routine to check if the InetAddress is a wildcard address.
*
! * @return a {@code boolean} indicating if the Inetaddress is
* a wildcard address.
*/
@Override
public boolean isAnyLocalAddress() {
return holder6.isAnyLocalAddress();
--- 681,691 ----
}
/**
* Utility routine to check if the InetAddress is a wildcard address.
*
! * @return a {@code boolean} indicating if the InetAddress is
* a wildcard address.
*/
@Override
public boolean isAnyLocalAddress() {
return holder6.isAnyLocalAddress();
*** 819,829 ****
return holder6.scope_id;
}
/**
* Returns the scoped interface, if this instance was created with
! * with a scoped interface.
*
* @return the scoped interface, or null if not set.
* @since 1.5
*/
public NetworkInterface getScopedInterface() {
--- 819,829 ----
return holder6.scope_id;
}
/**
* Returns the scoped interface, if this instance was created with
! * a scoped interface.
*
* @return the scoped interface, or null if not set.
* @since 1.5
*/
public NetworkInterface getScopedInterface() {
< prev index next >