patch-2.1.53 linux/net/ipv4/syncookies.c

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

diff -u --recursive --new-file v2.1.52/linux/net/ipv4/syncookies.c linux/net/ipv4/syncookies.c
@@ -9,7 +9,7 @@
  *      as published by the Free Software Foundation; either version
  *      2 of the License, or (at your option) any later version.
  * 
- *  $Id: syncookies.c,v 1.1 1997/06/06 20:37:56 freitag Exp $
+ *  $Id: syncookies.c,v 1.2 1997/08/22 19:15:08 freitag Exp $
  *
  *  Missing: IPv6 support. 
  *           Some counter so that the Administrator can see when the machine
@@ -149,6 +149,7 @@
 	struct open_request *req; 
 	int mss; 
 	struct rtable *rt; 
+	__u8 rcv_wscale;
 
 	if (!sysctl_tcp_syncookies)
 		return sk;
@@ -210,7 +211,8 @@
 	req->window_clamp = rt->u.dst.window;  
 	tcp_select_initial_window(sock_rspace(sk)/2,req->mss,
 				  &req->rcv_wnd, &req->window_clamp, 
-				  0, &req->rcv_wscale);
+				  0, &rcv_wscale);
+	req->rcv_wscale = rcv_wscale; 
 
 	return get_cookie_sock(sk, skb, req, &rt->u.dst);
 }

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