java.lang.Object
net.i2p.util.Addresses.Inet6Addr
Enclosing class:
Addresses

private static class Addresses.Inet6Addrextends Object
Cached IPv6 address with its scope.
  • Field Details

    • addr

      private final Inet6Address addr
      The interface address.
    • isDyn

      private final boolean isDyn
      True unless the address is flagged permanent.
    • isDep

      private final boolean isDep
      True if the address is flagged deprecated.
    • isTemp

      private final boolean isTemp
      True if the address is flagged temporary.
  • Constructor Details

    • Inet6Addr

      public Inet6Addr(Inet6Address a, int flags)
      Records one interface address with its flags.
      Parameters:
      a - the interface address
      flags - the flags from the proc file
  • Method Details

    • getAddress

      public Inet6Address getAddress()
      Returns the interface address.
      Returns:
      the address of the interface
    • isDynamic

      public boolean isDynamic()
      Checks whether the address may change.
      Returns:
      true unless the address is permanent
    • isDeprecated

      public boolean isDeprecated()
      Checks whether the address is deprecated.
      Returns:
      true if deprecated
    • isTemporary

      public boolean isTemporary()
      Checks whether the address is temporary.
      Returns:
      true if temporary