[SK_BUFF]: Introduce skb_mac_header()
[powerpc.git] / include / linux / if_ether.h
index ab08f35..f6863fb 100644 (file)
@@ -112,7 +112,7 @@ struct ethhdr {
 
 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb)
 {
-       return (struct ethhdr *)skb->mac.raw;
+       return (struct ethhdr *)skb_mac_header(skb);
 }
 
 #ifdef CONFIG_SYSCTL