]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/xfrm6_mode_tunnel.c
[SK_BUFF]: Introduce skb_mac_header()
[net-next-2.6.git] / net / ipv6 / xfrm6_mode_tunnel.c
index d2c560c181a1c02dbcc92be2a394c0e40df589c2..5bb0677d373068199562beb6737cfa47268256a1 100644 (file)
@@ -108,9 +108,9 @@ static int xfrm6_tunnel_input(struct xfrm_state *x, struct sk_buff *skb)
                        ip6ip_ecn_decapsulate(skb);
                skb->protocol = htons(ETH_P_IP);
        }
-       old_mac = skb->mac.raw;
+       old_mac = skb_mac_header(skb);
        skb_set_mac_header(skb, -skb->mac_len);
-       memmove(skb->mac.raw, old_mac, skb->mac_len);
+       memmove(skb_mac_header(skb), old_mac, skb->mac_len);
        skb->nh.raw = skb->data;
        err = 0;