java.lang.Object
oshi.software.common.AbstractNetworkParams
oshi.software.os.unix.openbsd.OpenBsdNetworkParams
- All Implemented Interfaces:
NetworkParams
OpenBsdNetworkParams class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the default gateway(routing destination for 0.0.0.0/0) for IPv4 connections.Gets default gateway(routing destination for ::/0) for IPv6 connections.Methods inherited from class oshi.software.common.AbstractNetworkParams
getDnsServers, getDomainName, getHostName, searchGateway, toString
-
Constructor Details
-
OpenBsdNetworkParams
public OpenBsdNetworkParams()
-
-
Method Details
-
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
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.
-