Subject: Re: Finding the correct interface for a packet
To: Andrew Brown <>
From: Klaus Klein <>
List: tech-net
Date: 12/03/1998 21:24:09
Andrew Brown <> writes:

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