On Mon, Feb 6, 2012 at 12:00 PM, Shawn Lu [off-list ref] wrote:
On 2/6/12, Erich E. Hoover [off-list ref] wrote:
quoted
...
+ if (sk->sk_bound_dev_if && ifindex != sk->sk_bound_dev_if)
If I understand right, when sk->sk_bound_dev_if !=0 , sk->sk_bound_dev_if
will be used instead. Then why bother to set outif_index.
Here.
It seems to me that if the socket is already bound to an interface
(other than intended interface) then it makes sense to fail to set the
option, since it will clearly not work under this circumstance. I may
be misunderstanding you though.
Erich Hoover
ehoover@mines.edu