[SK_BUFF]: Some more layer header conversions
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
0a6114d94b
commit
ddc7b8e32b
@@ -580,7 +580,8 @@ static int ipmr_cache_report(struct sk_buff *pkt, vifi_t vifi, int assert)
|
||||
* Copy the IP header
|
||||
*/
|
||||
|
||||
skb->nh.raw = skb_put(skb, ihl);
|
||||
skb_set_network_header(skb, skb->tail - skb->data);
|
||||
skb_put(skb, ihl);
|
||||
memcpy(skb->data,pkt->data,ihl);
|
||||
ip_hdr(skb)->protocol = 0; /* Flag to the kernel this is a route add */
|
||||
msg = (struct igmpmsg *)skb_network_header(skb);
|
||||
|
Reference in New Issue
Block a user