Skip to content

Commit

Permalink
[SK_BUFF] ipmr: Missed one conversion to skb_network_header()
Browse files Browse the repository at this point in the history
We can't access skb->nh.raw directly anymore, it will become an offset.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Apr 26, 2007
1 parent 0e1256f commit 0272ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ static int ipmr_cache_report(struct sk_buff *pkt, vifi_t vifi, int assert)
skb_push(skb, sizeof(struct iphdr));
skb_reset_network_header(skb);
skb->h.raw = skb->data;
msg = (struct igmpmsg *)skb->nh.raw;
msg = (struct igmpmsg *)skb_network_header(skb);
memcpy(msg, skb_network_header(pkt), sizeof(struct iphdr));
msg->im_msgtype = IGMPMSG_WHOLEPKT;
msg->im_mbz = 0;
Expand Down

0 comments on commit 0272ffc

Please sign in to comment.