of

fun of(address: String, netmask: String, family: String, mac: String, internal: Boolean, cidr: String, scopeid: Int? = null): NetworkInterfaceInfo

Creates a new instance of NetworkInterfaceInfo.

Return

A new instance of NetworkInterfaceInfo.

Parameters

address

The assigned IPv4 or IPv6 address.

netmask

The IPv4 or IPv6 network mask.

family

Either IPv4 or IPv6.

mac

The MAC address of the network interface.

internal

true if the network interface is a loopback or similar interface that is not remotely accessible; otherwise false.

cidr

The assigned IPv4 or IPv6 address with the routing prefix in CIDR notation. If the netmask is invalid, this property is set to null.

scopeid

The numeric IPv6 scope ID (only specified when the family is IPv6).