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

Next file: linux-2.4.26/net/ipv6/ipv6_sockglue.c
Previous file: linux-2.4.26/net/ipv6/exthdrs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/net/ipv6/icmp.c linux-2.4.26/net/ipv6/icmp.c
@@ -648,7 +648,13 @@
 
 		sk = icmpv6_socket_cpu(i)->sk;
 		sk->allocation = GFP_ATOMIC;
-		sk->sndbuf = SK_WMEM_MAX*2;
+
+		/* Enough space for 2 64K ICMP packets, including
+		 * sk_buff struct overhead.
+		 */
+		sk->sndbuf =
+			(2 * ((64 * 1024) + sizeof(struct sk_buff)));
+
 		sk->prot->unhash(sk);
 	}
 

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