Thread (5 messages) flat view 5 messages, 2 authors, 2012-02-06

Re: [PATCH v3 1/2] Implement IP_UNICAST_IF socket option.

From: Erich E. Hoover <hidden>
Date: 2012-02-06 19:35:29

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help