On Mon, Aug 6, 2012 at 3:53 AM, Marak Squires <[email protected]> wrote:
> Robert -
>
> Would it make any sense to bring this logic into core instead of relying on
> shelling out to various command line tools?
>
> I'm unsure the repercussions ( if any ) that having a piece of code like
> this would have in core.

I would reject the PR. It's a rather esoteric feature that almost no
one needs. Core is not a dumping ground, that's what add-ons are for.
:-)

Besides, you *can* accomplish this from an add-on. On most Unices,
it's a matter of creating a socket of the address family you're
interested in (AF_INET, AF_INET6) and calling some ioctls to get the
routing table. Windows has a more elaborate API that's documented
here[1].

[1] 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa373798%28v=vs.85%29.aspx

Reply via email to