Class OpenBsdNetworkParams

java.lang.Object
oshi.software.common.AbstractNetworkParams
oshi.software.os.unix.openbsd.OpenBsdNetworkParams
All Implemented Interfaces:
NetworkParams

@ThreadSafe public class OpenBsdNetworkParams extends AbstractNetworkParams
OpenBsdNetworkParams class.
  • Constructor Details

    • OpenBsdNetworkParams

      public OpenBsdNetworkParams()
  • Method Details

    • getIpv4DefaultGateway

      public String getIpv4DefaultGateway()
      Description copied from interface: NetworkParams
      Gets the default gateway(routing destination for 0.0.0.0/0) for IPv4 connections.
      Returns:
      default gateway for IPv4, or empty string if not defined.
    • getIpv6DefaultGateway

      public String getIpv6DefaultGateway()
      Description copied from interface: NetworkParams
      Gets default gateway(routing destination for ::/0) for IPv6 connections.
      Returns:
      default gateway for IPv6, or empty string if not defined.