[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #33128] Socket send() and sendto() do not use bound in

From: Simon Goldschmidt
Subject: [lwip-devel] [bug #33128] Socket send() and sendto() do not use bound interface.
Date: Wed, 20 Apr 2011 07:52:24 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0

Follow-up Comment #2, bug #33128 (project lwip):

> Something that doesn't quite make sense to me is that for lwIP 
> to be selecting the wrong interface, you must have more than one 
> interface that can reach the destination. I.e. overlapping IP 
> subnets. This isn't something that lwIP aspires to support.

That's what makes me think the current behaviour is correct: why should
routing consider the source address (wouldn't that make it stateful, which it
a) If there's more than one route than that's currently not supported by lwIP
(or we would need a more complex routing algorithm).
b) If there's only one route to the (remote) address in question, then why
would the local socket be trying to send to that address (if it's not
reachable via its "interface").

My impression of this is that this is not a problem for TCP since a TCP socket
bound to a specific interface simply would not get a connection into a running

Also, the solution with the "bound_if" sounds very much like SO_BINDTODEVICE
to me!


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]