ipv6: tcp: fix TCLASS value in ACK messages sent from TIME_WAIT
[deliverable/linux.git] / net / ipv4 / icmp.c
index 23ef31baa1afb84d3b81af7ab031c88830efe0f5..ab188ae12fd9e64635f47c92a1cc0acf1b9d3a13 100644 (file)
@@ -1152,10 +1152,9 @@ static int __net_init icmp_sk_init(struct net *net)
                net->ipv4.icmp_sk[i] = sk;
 
                /* Enough space for 2 64K ICMP packets, including
-                * sk_buff struct overhead.
+                * sk_buff/skb_shared_info struct overhead.
                 */
-               sk->sk_sndbuf =
-                       (2 * ((64 * 1024) + sizeof(struct sk_buff)));
+               sk->sk_sndbuf = 2 * SKB_TRUESIZE(64 * 1024);
 
                /*
                 * Speedup sock_wfree()
This page took 0.024692 seconds and 5 git commands to generate.