primaryInterfaces
Signature | hs.network.primaryInterfaces() -> ipv4Interface, ipv6Interface |
---|---|
Type | Function |
Description | Returns the names of the primary IPv4 and IPv6 interfaces. Parameters:
Returns:
Notes:
|
This module provides functions for inquiring about and monitoring changes to the network.
Signature | hs.network.addresses([interface, ...]) -> table |
---|---|
Type | Function |
Description | Returns a list of the IPv4 and IPv6 addresses for the specified interfaces, or all interfaces if no arguments are given. Parameters:
Returns:
Notes:
|
Signature | hs.network.interfaceDetails([interface | favorIPv6]) -> table |
---|---|
Type | Function |
Description | Returns details about the specified interface or the primary interface if no interface is specified. Parameters:
Returns:
Notes:
|
Signature | hs.network.interfaceName([interface | favorIPv6]) -> string |
---|---|
Type | Function |
Description | Returns the user defined name for the specified interface or the primary interface if no interface is specified.
Returns:
Notes:
|
Signature | hs.network.interfaces() -> table |
---|---|
Type | Function |
Description | Returns a list of interfaces currently active for the system. Parameters:
Returns:
Notes:
|
Signature | hs.network.primaryInterfaces() -> ipv4Interface, ipv6Interface |
---|---|
Type | Function |
Description | Returns the names of the primary IPv4 and IPv6 interfaces. Parameters:
Returns:
Notes:
|