lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] bind and ip_route


From: Kieran Mansley
Subject: Re: [lwip-users] bind and ip_route
Date: Mon, 28 Mar 2011 10:09:20 +0100

On Mon, 2011-03-28 at 10:53 +0200, Emil Ljungdahl wrote:
> 
> If I bind to a port and IP-address of interface B and receives (for
> example)
> a HTTP connection request, the reply might be sent on interface A,
> since
> ip_route only selects interface depending on destination address. I'm
> not
> the guy to tell what is wrong and what is right regarding the
> IP-stack, but
> shouldn't a netconn/socket/pcb that is bound to a local address, that
> is
> "owned" by a local netif, only use that netif for both rx and tx?

No, the interface used is determined by the route table, unless you've
used the SO_BINDTODEVICE socket option (which lwIP doesn't support).

Kieran




reply via email to

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