Subject: Re: [PATCH] Make SO_BINDTODEVICE bind very tightly

From: "David S. Miller" <[email-masked]>
Date: Wed, 8 Oct 2003 04:49:48 -0700

On Tue, 07 Oct 2003 17:16:25 -0500
Casey Carter <[email-masked]> wrote:

> In the presence of both sockets that are and sockets that are not bound 
> to a specific interface, those bound to the interface should always be 
> favored for packet delivery over those not so bound.

No, the fix made in the original posting of this thread is the
correct one.  One may not have some sockets with SO_BINDTODEVICE
and some with not bound at the same time to the same identity.
Therefore the fix should be a bind() time.