MCPcopy Create free account
hub / github.com/antlr/codebuff / isTeredoAddress

Method isTeredoAddress

output/java_guava/1.4.18/InetAddresses.java:670–674  ·  view source on GitHub ↗

Evaluates whether the argument is a Teredo address. Teredo addresses begin with the "2001::/32" prefix. @param ip Inet6Address to be examined for Teredo address format @return true if the argument is a Teredo address

(Inet6Address ip)

Source from the content-addressed store, hash-verified

668
669
670 public static boolean isTeredoAddress(Inet6Address ip) {
671 byte[] bytes = ip.getAddress();
672 return (bytes[0] == (byte) 0x20) && (bytes[1] == (byte) 0x01) && (bytes[2] == 0)
673 && (bytes[3] == 0);
674 }
675
676 /**
677 * Returns the Teredo information embedded in a Teredo address.

Callers 4

getTeredoInfoMethod · 0.95
isIsatapAddressMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected