< prev index next >
src/java.base/share/classes/java/net/Inet6Address.java
Print this page
@@ -137,11 +137,13 @@
*
* <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].
+ * addressing architecture is described in
+ * <a href="https://tools.ietf.org/html/rfc4007">
+ * <i>RFC 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,11 +507,11 @@
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)
+ * (i.e. one is site-local and the other link-local)
* return true otherwise.
*/
private static boolean isDifferentLocalAddressType(
byte[] thisAddr, byte[] otherAddr) {
@@ -681,11 +683,11 @@
}
/**
* Utility routine to check if the InetAddress is a wildcard address.
*
- * @return a {@code boolean} indicating if the Inetaddress is
+ * @return a {@code boolean} indicating if the InetAddress is
* a wildcard address.
*/
@Override
public boolean isAnyLocalAddress() {
return holder6.isAnyLocalAddress();
@@ -819,11 +821,11 @@
return holder6.scope_id;
}
/**
* Returns the scoped interface, if this instance was created with
- * with a scoped interface.
+ * a scoped interface.
*
* @return the scoped interface, or null if not set.
* @since 1.5
*/
public NetworkInterface getScopedInterface() {
< prev index next >