https://bugzilla.novell.com/show_bug.cgi?id=594642

https://bugzilla.novell.com/show_bug.cgi?id=594642#c5


Dimitar Dobrev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Dimitar Dobrev <[email protected]> 2011-02-15 15:48:13 
UTC ---
Hi, I have a fix for this:

In
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.NetworkInformation/NetworkInterface.cs

in MacOsNetworkInterface.ImplGetAllNetworkInterfaces (currently at line 484)

replace

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

with

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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to