Subject: Re: Melting down your network
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 03/28/2005 16:50:36
On Sun, Mar 27, 2005 at 04:43:24PM -0500, Thor Lancelot Simon wrote:
> So select() doesn't -- can't -- block if there's "less than the
> low-water mark" available with things just as they are now; and it
> seems like it ought to be able to.  But select on *what*?  How can
> it know which ifq you're trying to feed?  With select(), unlike
> with send(), you don't have the destination address available, so
> you can't know which ifq to wait for space in!

You might do an educated guess based on the _source_ address of the
socket, assuming that an application binds the socket to an address
of the out-going interface.

Joerg