patch-2.4.26 linux-2.4.26/net/ipv4/icmp.c

Next file: linux-2.4.26/net/ipv4/igmp.c
Previous file: linux-2.4.26/net/ipv4/devinet.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/net/ipv4/icmp.c linux-2.4.26/net/ipv4/icmp.c
@@ -984,7 +984,13 @@
 			panic("Failed to create the ICMP control socket.\n");
 
 		icmp_socket_cpu(i)->sk->allocation=GFP_ATOMIC;
-		icmp_socket_cpu(i)->sk->sndbuf = SK_WMEM_MAX*2;
+
+		/* Enough space for 2 64K ICMP packets, including
+		 * sk_buff struct overhead.
+		 */
+		icmp_socket_cpu(i)->sk->sndbuf =
+			(2 * ((64 * 1024) + sizeof(struct sk_buff)));
+
 		icmp_socket_cpu(i)->sk->protinfo.af_inet.ttl = MAXTTL;
 		icmp_socket_cpu(i)->sk->protinfo.af_inet.pmtudisc = IP_PMTUDISC_DONT;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)