GETNETINTERFACE returns information about all network interfaces connected to this computer and their addresses.
* Input:
* properties:
* IPv4Only: logical [1,1] - return only IPv4 addresses. Default = false
* noLoopback: logical [1,1] - do not return loopback addresses.
* Default = false
* mustHaveAddress: logical [1,1] - return only interfaces that have at
* least one address. This filter is applied after all address filters
* are applied
* mustHaveHwAddress: logical[1,1] - if true, only interfaces with non-empty
* hardware address are returned, the rest are filtered out
*
* Output:
* SNetInfo: struct [nInterfaces,1] - each element of this structure
* vector is an interface description with the following fields:
* interfaceName: char [1,] - short name
* interfaceDisplayName: char [1,] - long name
* hardwareAddress: char [1,] - hardware address (usually MAC
* address)
* ipAddresses: struct [,1] - IP addresses for this interface
* The struct vector ipAddresses has the following fields:
* hostName: char [1,] - qualified host name, if available,
* otherwise the same as ipAddress
* ipVersion: char [1,] - IP version (IPv4 or IPv6)
* ipAddress: char [1,] - IP address
* networkPrefixLength: double [1,1] - network prefix length (number
* of 1-bits in the subnet mask)
* netMask: char [1,] - subnet mask (IPv4 only)
* broadcastAddress: char [1,] - broadcast address (IPv4 only)
* isLoopbackAddress: logical [1,1] - true if the address is a
* loopback address
*
- Author
- Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om
- Copyright
- 2015-2016 Peter Gagarinov, PhD
2015 Moscow State University,
Faculty of Computational Mathematics and Computer Science,
System Analysis Department