Commit f226e7de authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV4/IGMP]: Use LL_RESERVED_SPACE() where applicable.

parent e9e8089c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment