[Bug 194660] lang/mono Use netstat to get routes instead of /proc/net/route

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 6 09:51:51 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194660

--- Comment #6 from Ben Woods <woodsb02 at gmail.com> ---
To explain further why both are required.
Refer to the code here:
https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs

This code defines a base class IPInterfaceProperties.
There are 2 derived classes that inherit the members of IPInterfaceProperties:
 - UnixIPInterfaceProperties (common to Linux, Mac, FreeBSD)
 - Win32IPInterfaceProperties2

There are 2 derived classes that inherit the members of
UnixIPInterfaceProperties:
    - LinuxIPInterfaceProperties
    - MacOsIPInterfaceProperties

The ParseRouteInfo method is a part of the UnixIPInterfaceProperties class
(common to Linux, Mac, FreeBSD). Hence, changing mono on FreeBSD to use the
MacOsNetworkInterface class (as per the patches attached to PR194845) does not
fix this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-mono mailing list