Mono/C#: Get all interface addresses

Due to some missing parts of System.Net.NetworkInformation, I’ve written a (very basic and libc-based) wrapper to collect network interface address information from the system. It calls getifaddrs, walks through the ifaddrs structure and creates a managed counterpart.

NetworkInterfaceAddress.cs

Even though it may be implemented way too complicated or confusing, it might be useful for someone out there.

You are currently browsing the phbaer blog archives for July, 2007.