[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: Kieran Mansley
Subject: [lwip-devel] [bug #33128] Socket send() and sendto() do not use bound interface.
Date: Wed, 20 Apr 2011 07:36:58 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1

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

For completeness, do you have a reference for the behaviour you require?  I
expect it is correct, but having a reference would save me testing and looking
for it, so make the fix much quicker.

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.

If we do want to do this, rather than caching the bound interface (which would
be more appropriate for SO_BINDTODEVICE) I think we just need to give
preference to the interface that matches the source address as well as the
destination address when routing.  


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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