[SK_BUFF]: Introduce skb_reset_mac_header(skb)
[linux-2.6-block.git] / net / ipv4 / ip_output.c
index 5db301b33372c48f53e53410a99e0538a32fa507..ddba857bd2439b218fa3f6ab692a98e1c3559149 100644 (file)
@@ -95,7 +95,7 @@ __inline__ void ip_send_check(struct iphdr *iph)
 /* dev_loopback_xmit for use with netfilter. */
 static int ip_dev_loopback_xmit(struct sk_buff *newskb)
 {
-       newskb->mac.raw = newskb->data;
+       skb_reset_mac_header(newskb);
        __skb_pull(newskb, newskb->nh.raw - newskb->data);
        newskb->pkt_type = PACKET_LOOPBACK;
        newskb->ip_summed = CHECKSUM_UNNECESSARY;