Closed chucker closed 3 years ago
IP address: see https://github.com/chucker/AltNetworkUtility/tree/features/1-ipaddress
We get multiple addresses and want to present each of them, ideally each selectable. Somehow, that's quite a task in XamForms.
I suspect an endianness problem or other type/marshalling mistake with the network statistics. Also, we should probably decouple those from GetAvailableInterfaces()
so we can keep updating them.
Need to actually show the status, preferably similarly to how SysPrefs does it.
Still unclear how to get vendor and model. IORegistry, I think — it has an IOModel
property that seems to match what Network Utility outputs.
I think we need to:
IOService:/
of type IOEthernetInterface
. These have a property BSD Name
that matches e.g. en0
.IOModel
and IOVendor
(anything else we care about?)https://stackoverflow.com/a/9141788/1600 looks close. IOServiceMatching(kIOEthernetInterfaceClass)
seems to do step 1, and then there's IORegistryEntryGetParentEntry
.
Existing features:
New features:
(Screenshots courtesy of http://www.macosxtips.co.uk/index_files/how-to-use-network-utility.php, and as of macOS 10.6 Snow Leopard.)