Subject: Re: Finding the correct interface for a packet
To: Andrew Brown <firstname.lastname@example.org>
From: Klaus Klein <email@example.com>
Date: 12/03/1998 21:24:09
Andrew Brown <firstname.lastname@example.org> writes:
> % route get 188.8.131.52
> in each case, the "interface" line is what you want. i, at one
> point, snarfed pieces of code from route.c and cobbled some other bits
> together for just this purpose.
> the snag: it uses routing sockets, which means it needs to be root.
That's no longer true; the routing socket interface has been changed
to not require super-user privileges for RTM_GET.