diff options
Diffstat (limited to 'include/linux/if_ether.h')
-rw-r--r-- | include/linux/if_ether.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_ether.h b/include/linux/if_ether.h index ab08f35cbc35..f6863fbcf334 100644 --- a/include/linux/if_ether.h +++ b/include/linux/if_ether.h | |||
@@ -112,7 +112,7 @@ struct ethhdr { | |||
112 | 112 | ||
113 | static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) | 113 | static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) |
114 | { | 114 | { |
115 | return (struct ethhdr *)skb->mac.raw; | 115 | return (struct ethhdr *)skb_mac_header(skb); |
116 | } | 116 | } |
117 | 117 | ||
118 | #ifdef CONFIG_SYSCTL | 118 | #ifdef CONFIG_SYSCTL |