Subject: Re: Finding the correct interface for a packet
To: Andrew Brown <twofsonet@graffiti.com>
From: Klaus Klein <kleink@ira.uka.de>
List: tech-net
Date: 12/03/1998 21:24:09
Andrew Brown <twofsonet@graffiti.com> writes:

> % route get 198.67.15.13
>
> [...]
>   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.