Class AixNetworkParams
java.lang.Object
oshi.software.common.AbstractNetworkParams
oshi.software.common.os.unix.aix.AixNetworkParams
- All Implemented Interfaces:
NetworkParams
Abstract base for AIX NetworkParams.
netstat -rnf inet[6] parsing is shared; only AbstractNetworkParams.getHostName()
differs between JNA (gethostname via JNA) and FFM (gethostname via FFM).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intAIX hostname maximum length, including the trailing NUL. -
Constructor Summary
Constructors -
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 AbstractNetworkParams
getDnsServers, getDomainName, getHostName, searchGateway, toStringModifier and TypeMethodDescriptionString[]Gets the DNS Servers configured for this machine.Gets the Domain Name of the machine executing OSHI.Gets the HostName of the machine executing OSHI.protected static StringsearchGateway(List<String> lines) Convenience method to parse the output of the `route` command.toString()
-
Field Details
-
HOST_NAME_BUF_SIZE
protected static final int HOST_NAME_BUF_SIZEAIX hostname maximum length, including the trailing NUL.HOST_NAME_MAX = 255.- See Also:
-
-
Constructor Details
-
AixNetworkParams
public AixNetworkParams()
-
-
Method Details
-
getIpv4DefaultGateway
Description copied from interface:NetworkParamsGets 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:NetworkParamsGets default gateway(routing destination for ::/0) for IPv6 connections.- Returns:
- default gateway for IPv6, or empty string if not defined.
-