patch-2.0.34 linux/net/ipv4/tcp_input.c

Next file: linux/net/ipv4/tcp_output.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.33/linux/net/ipv4/tcp_input.c linux/net/ipv4/tcp_input.c
@@ -216,6 +216,7 @@
  *	(e.g. long delay packet radio links, 1200 baud modems.)
  */
 static __u32 cookie_mtu[8] = { 64, 256, 512, 536, 1024, 1440, 1460, 4312 };
+unsigned int ui_c_send_cookies = 0;
 #endif
 
 extern void tcp_v4_hash(struct sock *sk);
@@ -594,6 +595,7 @@
 #endif
 #ifdef CONFIG_SYN_COOKIES
 			send_cookie = 1;
+			ui_c_send_cookies++;
 #else
 			/* If we only have RST cookies we should
 			 * not drop through to the rest of the response code.
@@ -1723,7 +1725,7 @@
 		if(sk->ip_xmit_timeout==TIME_KEEPOPEN)
 			tcp_reset_xmit_timer(sk, TIME_KEEPOPEN, TCP_TIMEOUT_LEN);
 	}
-	return 1;
+	return 0;
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov