Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for is6to4Address (0.05 seconds)

  1. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param ip {@link Inet6Address} to be examined for 6to4 address format
       * @return {@code true} if the argument is a 6to4 address
       */
      public static boolean is6to4Address(Inet6Address ip) {
        byte[] bytes = ip.getAddress();
        return (bytes[0] == (byte) 0x20) && (bytes[1] == (byte) 0x02);
      }
    
      /**
       * Returns the IPv4 address embedded in a 6to4 address.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        for (String non6to4Address : non6to4Addresses) {
          InetAddress ip = InetAddresses.forString(non6to4Address);
          assertFalse(InetAddresses.is6to4Address((Inet6Address) ip));
          assertThrows(
              "IllegalArgumentException expected for '" + non6to4Address + "'",
              IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top