[Mono-bugs] [Bug 594642] System.ArgumentException from System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces on Mac OS X

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 15 10:48:14 EST 2011



Dimitar Dobrev <dpldobrev at yahoo.com> changed:

           What    |Removed                     |Added
                 CC|                            |dpldobrev at yahoo.com

--- Comment #5 from Dimitar Dobrev <dpldobrev at yahoo.com> 2011-02-15 15:48:13 UTC ---
Hi, I have a fix for this:


in MacOsNetworkInterface.ImplGetAllNetworkInterfaces (currently at line 484)


Array.Copy (sockaddrdl.sdl_data, sockaddrdl.sdl_alen, macAddress, 0,


Array.Copy (sockaddrdl.sdl_data, sockaddrdl.sdl_alen, macAddress, 0, Math.Min
(macAddress.Length, sockaddrdl.sdl_data.Length - sockaddrdl.sdl_alen));

This throws no errors and retrieves the same network interfaces on my Leopard
(10.5.8) as ifconfig.

I am submitting this fix under the MIT license. Sorry for this "format" but I
don't have time for a patch file right now. If it's a problem I'll try sending
one later.

Any chance this can enter Mono 2.10?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list