Mono expecting /proc/net/route
Ben Woods
woodsb02 at gmail.com
Tue Sep 23 23:02:38 UTC 2014
Yes, that's what my specific problem was. I will see if I can generate a
patch... I'm just wondering what it would look like if it was adopted into
the upstream code (There is a separate set of functions for Mac IP
addressing, should there be a separate set of BSD functions?).
On Wednesday, September 24, 2014, Romain Tartière <romain at freebsd.org>
wrote:
> Are you refering to this?
>
> https://github.com/mono/mono/blob/effa4c07ba850bedbe1ff54b2a5df281c058ebcb/mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs#L77
>
> AFAICR, the information should be available from a sysctl (what
> netstat(8) does) or from a PF_ROUTE socket (what route(8) does), but it
> may be easier to parse the output of netstat(8) instead of
> reimplementing parts of netstat(8) or route(8) in managed code…
>
> If you have a patch, feel free to share it here so that I can include it
> ;-)
>
>
> --
> Romain Tartière <romain at FreeBSD.org> http://people.FreeBSD.org/~romain/
> pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
> (plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
>
--
--
From: Benjamin Woods
woodsb02 at gmail.com
More information about the freebsd-mono
mailing list