Subject: Re: Finding the correct interface for a packet
To: Andrew Brown <email@example.com>
From: Klaus Klein <firstname.lastname@example.org>
Date: 12/03/1998 21:24:09
Andrew Brown <email@example.com> writes:
> % route get 220.127.116.11
> 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.