commit | 2b9164771efe191c4ef266ae53c8c05ab92dd115 | [log] [tgz] |
---|---|---|
author | Andrey Vagin <[email protected]> | Thu Nov 22 01:13:58 2012 +0000 |
committer | David S. Miller <[email protected]> | Thu Nov 22 15:30:14 2012 -0500 |
tree | 7e972e21387ac04f22f5f6edc57ed1247b1854ea | |
parent | 242a18d1374cebacd301f6b0ce1fd70d6c5afee6 [diff] [blame] |
ipv6: adapt connect for repair move This is work the same as for ipv4. All other hacks about tcp repair are in common code for ipv4 and ipv6, so this patch is enough for repairing ipv6 connections. Cc: "David S. Miller" <[email protected]> Cc: Alexey Kuznetsov <[email protected]> Cc: James Morris <[email protected]> Cc: Hideaki YOSHIFUJI <[email protected]> Cc: Patrick McHardy <[email protected]> Cc: Pavel Emelyanov <[email protected]> Signed-off-by: Andrey Vagin <[email protected]> Acked-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 6c0f252..6565cf55 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c
@@ -295,7 +295,7 @@ if (err) goto late_failure; - if (!tp->write_seq) + if (!tp->write_seq && likely(!tp->repair)) tp->write_seq = secure_tcpv6_sequence_number(np->saddr.s6_addr32, np->daddr.s6_addr32, inet->inet_sport,