]> git.hungrycats.org Git - linux/commitdiff
[IPV4/IGMP]: Use LL_RESERVED_SPACE() where applicable.
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Mon, 9 Feb 2004 03:12:27 +0000 (19:12 -0800)
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Mon, 9 Feb 2004 03:12:27 +0000 (19:12 -0800)
net/ipv4/igmp.c

index f8d8fb5607df93ee5d3e8acf5a0d5a47361178b1..e156d1f22bd921f6d2600b37009ad8bb597bca5a 100644 (file)
@@ -276,7 +276,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
        struct iphdr *pip;
        struct igmpv3_report *pig;
 
-       skb = alloc_skb(size + dev->hard_header_len + 15, GFP_ATOMIC);
+       skb = alloc_skb(size + LL_RESERVED_SPACE(dev), GFP_ATOMIC);
        if (skb == NULL)
                return 0;
 
@@ -298,7 +298,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
        skb->dst = &rt->u.dst;
        skb->dev = dev;
 
-       skb_reserve(skb, (dev->hard_header_len+15)&~15);
+       skb_reserve(skb, LL_RESERVED_SPACE(dev));
 
        skb->nh.iph = pip =(struct iphdr *)skb_put(skb, sizeof(struct iphdr)+4);