Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for getScopedInterface (0.1 seconds)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

            assertThat(InetAddresses.toAddrString(parsed)).contains("%");
            if (isNumeric) {
              assertEquals(parseInt(scopeId), parsed.getScopeId());
            } else {
              assertThat(parsed.getScopedInterface().getName()).isEqualTo(scopeId);
            }
            Inet6Address reparsed =
                (Inet6Address) InetAddresses.forString(InetAddresses.toAddrString(parsed));
            assertThat(reparsed).isEqualTo(parsed);
    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)
  2. android/guava/src/com/google/common/net/InetAddresses.java

        // mapped interface isn't present, fallback to use the scope ID (which has no validation against
        // present interfaces)
        NetworkInterface scopedInterface = ip.getScopedInterface();
        if (scopedInterface != null) {
          return "%" + scopedInterface.getName();
        }
        int scope = ip.getScopeId();
        if (scope != 0) {
          return "%" + scope;
        }
        return "";
    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)
Back to Top