patch-2.0.12 linux/net/ipv4/tcp_output.c

Next file: linux/net/netrom/af_netrom.c
Previous file: linux/net/ipv4/ip_fragment.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.11/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -279,7 +279,7 @@
 	/*
 	 *	Wait up to 1 second for the buffer to fill.
 	 */
-	sk->partial_timer.expires = jiffies+HZ;
+	sk->partial_timer.expires = jiffies+HZ/10;
 	sk->partial_timer.function = (void (*)(unsigned long)) tcp_send_partial;
 	sk->partial_timer.data = (unsigned long) sk;
 	add_timer(&sk->partial_timer);
@@ -966,6 +966,10 @@
 		sock_wfree(sk, buff);
 		return;
 	}
+#ifndef CONFIG_NO_PATH_MTU_DISCOVERY
+	buff->ip_hdr->frag_off |= htons(IP_DF);
+#endif
+
 	t1 =(struct tcphdr *)skb_put(buff,sizeof(struct tcphdr));
 
   	/*

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