|
@@ -363,7 +363,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size)
|
|
static int igmpv3_sendpack(struct sk_buff *skb)
|
|
static int igmpv3_sendpack(struct sk_buff *skb)
|
|
{
|
|
{
|
|
struct igmphdr *pig = igmp_hdr(skb);
|
|
struct igmphdr *pig = igmp_hdr(skb);
|
|
- const int igmplen = skb->tail - skb->transport_header;
|
|
|
|
|
|
+ const int igmplen = skb_tail_pointer(skb) - skb_transport_header(skb);
|
|
|
|
|
|
pig->csum = ip_compute_csum(igmp_hdr(skb), igmplen);
|
|
pig->csum = ip_compute_csum(igmp_hdr(skb), igmplen);
|
|
|
|
|