< prev index next >

src/java.base/share/classes/java/net/Inet6Address.java

Print this page

        

*** 137,147 **** * * <h4><a id="scoped">Textual representation of IPv6 scoped addresses</a></h4> * * <p> The textual representation of IPv6 addresses as described above can be * extended to specify IPv6 scoped addresses. This extension to the basic ! * addressing architecture is described in [draft-ietf-ipngwg-scoping-arch-04.txt]. * * <p> Because link-local and site-local addresses are non-global, it is possible * that different hosts may have the same destination address and may be * reachable through different interfaces on the same originating system. In * this case, the originating system is said to be connected to multiple zones --- 137,149 ---- * * <h4><a id="scoped">Textual representation of IPv6 scoped addresses</a></h4> * * <p> The textual representation of IPv6 addresses as described above can be * extended to specify IPv6 scoped addresses. This extension to the basic ! * addressing architecture is described in ! * <a href="https://tools.ietf.org/html/rfc4007"> ! * <i>RFC&nbsp;4007: IPv6 Scoped Address Architecture</i></a>. * * <p> Because link-local and site-local addresses are non-global, it is possible * that different hosts may have the same destination address and may be * reachable through different interfaces on the same originating system. In * this case, the originating system is said to be connected to multiple zones
*** 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) { --- 507,517 ---- 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(); --- 683,693 ---- } /** * 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() { --- 821,831 ---- 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 >