[SK_BUFF]: Use the helpers to get the layer header pointer
Some more cases... Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
514bca322c
commit
bff9b61ce3
@@ -348,7 +348,7 @@ static int igmpv3_sendpack(struct sk_buff *skb)
|
||||
{
|
||||
struct iphdr *pip = ip_hdr(skb);
|
||||
struct igmphdr *pig = igmp_hdr(skb);
|
||||
const int iplen = skb->tail - skb->nh.raw;
|
||||
const int iplen = skb->tail - skb_network_header(skb);
|
||||
const int igmplen = skb->tail - skb_transport_header(skb);
|
||||
|
||||
pip->tot_len = htons(iplen);
|
||||
|
Reference in New Issue
Block a user