[Mono-list] Getting IP Subnet for Interface / and question on MAC Address
developer at noknok.net
Thu May 12 10:27:31 EDT 2011
I am converting some existing .NET code over to MONO. While we have
code in the base library which iterates thru the
NetworkInterface.GetAllNetworkInterfaces(), this function is ONLY
available in LINUX and WINDOWS.
I am looking for a similar way to get the IP Address, Subnet, and
Gateway IP for each interface that is compatible on all 3 platforms of
(LINUX< WINDOWS and MAC). Im not adverse to having 1 function for WIN
and LINUX, and another more limited version for MAC if thats the solution.
Also, we utilize IPHLPAPI.DLL for sending an ARP and using the response
to get the MAC address of other IP address' on the network.
Is their a cleaner way to do this within MONO so we can remove the
reference to IPHLPAPI.DLL
Thanks for any suggestions :)
More information about the Mono-list