diff options
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 9b6460055df5..46a5be85be87 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -386,9 +386,17 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
386 | 386 | ||
387 | if (dst) | 387 | if (dst) |
388 | dst->ops->redirect(dst, sk, skb); | 388 | dst->ops->redirect(dst, sk, skb); |
389 | goto out; | ||
389 | } | 390 | } |
390 | 391 | ||
391 | if (type == ICMPV6_PKT_TOOBIG) { | 392 | if (type == ICMPV6_PKT_TOOBIG) { |
393 | /* We are not interested in TCP_LISTEN and open_requests | ||
394 | * (SYN-ACKs send out by Linux are always <576bytes so | ||
395 | * they should go through unfragmented). | ||
396 | */ | ||
397 | if (sk->sk_state == TCP_LISTEN) | ||
398 | goto out; | ||
399 | |||
392 | tp->mtu_info = ntohl(info); | 400 | tp->mtu_info = ntohl(info); |
393 | if (!sock_owned_by_user(sk)) | 401 | if (!sock_owned_by_user(sk)) |
394 | tcp_v6_mtu_reduced(sk); | 402 | tcp_v6_mtu_reduced(sk); |