Subject: Re: Finding the correct interface for a packet
To: Matthias Scheler <firstname.lastname@example.org>
From: Perry E. Metzger <email@example.com>
Date: 12/01/1998 20:28:49
Matthias Scheler writes:
> I'm searching for an example userland source which takes an IP address
> as argument and returns the network interface which would be used to
> send a packet to the supplied IP address.
> Do we have something like that somewhere in our sources? If we don't
> has anybody ever written something like that?
I don't know if anyone has ever written it, but it basically requires
stealing the whole of the routing table interpretation code from the
kernel to do it. (Might as well use the kernel's code rather than