Re: TIME_WAIT/MSL is 2 seconds--bug/feature?

From: Andi Kleen (ak@muc.de)
Date: Wed Jan 05 2000 - 14:52:28 EST


> Alas, it contradicts to all known RFCs in this place
> and to common sense too 8).

Ok, I was wrong. Time to catch some sleep. Here is a fix for the bug.

David, could you apply it to vger-stable?

-Andi

--- linux/net/ipv4/tcp_input.c-o Fri Nov 19 00:29:46 1999
+++ linux/net/ipv4/tcp_input.c Wed Jan 5 20:47:39 2000
@@ -989,7 +989,7 @@
         }
 
         /* Check RST or SYN */
- if(th->rst || th->syn) {
+ if(th->rst) {
                 /* This is TIME_WAIT assasination, in two flavors.
                  * Oh well... nobody has a sufficient solution to this
                  * protocol bug yet.
@@ -998,8 +998,6 @@
                         tcp_tw_deschedule(tw);
                         tcp_timewait_kill(tw);
                 }
- if(!th->rst)
- return TCP_TW_RST; /* toss a reset back */
                 return 0;
         } else {
                 /* In this case we must reset the TIMEWAIT timer. */

-- 
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/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:04 EST