Messages in this thread Patch in this message | | | Subject | Re: 2.2.2-ac7 TCP ignores ICMP host unreachable ?? | From | Andi Kleen <> | Date | 04 Mar 1999 20:00:13 +0100 |
| |
robn@verdi.et.tudelft.nl (Rob van Nieuwkerk) writes:
> Hi, > > Some quick testing reveals that 2.2.2-ac7 ignores ICMP host unreachable > packets when *initiating* a TCP connection: [...]
This (untested) patch should fix it.
--- linux/net/ipv4/tcp_ipv4.c-o Thu Mar 4 07:36:35 1999 +++ linux/net/ipv4/tcp_ipv4.c Thu Mar 4 19:56:39 1999 @@ -808,7 +808,7 @@ tp = &sk->tp_pinfo.af_tcp; seq = ntohl(th->seq); - if (sk->state != TCP_LISTEN && !between(seq, tp->snd_una, tp->snd_nxt)) { + if (sk->state != TCP_LISTEN && !between(seq, tp->snd_una, tp->snd_nxt+1)) { net_statistics.OutOfWindowIcmps++; return; }
Does it fix the problem for you?
-Andi
-- This is like TV. I don't like TV.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |