patch-1.3.6 linux/net/ipv4/igmp.c

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

diff -u --recursive --new-file v1.3.5/linux/net/ipv4/igmp.c linux/net/ipv4/igmp.c
@@ -89,14 +89,14 @@
 	if(skb==NULL)
 		return;
 	tmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
-				skb->mem_len, 0, 1);
+				skb->truesize, 0, 1);
 	if(tmp<0)
 	{
 		kfree_skb(skb, FREE_WRITE);
 		return;
 	}
 	dp=skb->data+tmp;
-	skb->len=tmp+sizeof(struct igmphdr);
+	skb_put(skb,sizeof(struct igmphdr));
 	
 	*dp++=type;
 	*dp++=0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this