[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120204.182028.309520370369346156.davem@davemloft.net>
Date: Sat, 04 Feb 2012 18:20:28 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: shawn.lu@...csson.com
Cc: eric.dumazet@...il.com, netdev@...r.kernel.org, xiaoclu@...il.com
Subject: Re: [PATCH] tcp_v4_send_reset: binding oif to iif in no sock case
From: Shawn Lu <shawn.lu@...csson.com>
Date: Sat, 4 Feb 2012 14:38:09 -0800
> Binding RST packet outgoing interface to incoming interface
> for tcp v4 when there is no socket associate with it.
> when sk is not NULL, using sk->sk_bound_dev_if instead.
> (suggested by Eric Dumazet).
>
> This has few benefits:
> 1. tcp_v6_send_reset already did that.
> 2. This helps tcp connect with SO_BINDTODEVICE set. When
> connection is lost, we still able to sending out RST using
> same interface.
> 3. we are sending reply, it is most likely to be succeed
> if iif is used
>
> Signed-off-by: Shawn Lu <shawn.lu@...csson.com>
> Acked-by: Eric Dumazet <eric.dumazet@...il.com>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists