diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-16 17:19:57 -0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:26:18 -0700 |
commit | bff9b61ce330df04c6830d823c30c04203543f01 (patch) | |
tree | 19525bb3d690a421ebd48efa578736ea1e4ca3e2 /net/ipv4/igmp.c | |
parent | 514bca322cb9220308d22691ac1e74038bfabac3 (diff) | |
download | kernel-crypto-bff9b61ce330df04c6830d823c30c04203543f01.tar.gz kernel-crypto-bff9b61ce330df04c6830d823c30c04203543f01.tar.xz kernel-crypto-bff9b61ce330df04c6830d823c30c04203543f01.zip |
[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>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index b0efd279ddb..4695ada1d9b 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -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); |