diff --git a/sys/compat/linuxkpi/common/include/linux/if_ether.h b/sys/compat/linuxkpi/common/include/linux/if_ether.h
--- a/sys/compat/linuxkpi/common/include/linux/if_ether.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_ether.h
@@ -34,6 +34,7 @@
 #define	_LINUXKPI_LINUX_IF_ETHER_H_
 
 #include <linux/types.h>
+#include <linux/skbuff.h>
 
 #include <net/ethernet.h>
 
@@ -69,4 +70,13 @@
 	uint16_t	h_proto;
 } __packed;
 
+static inline struct ethhdr *
+eth_hdr(const struct sk_buff *skb)
+{
+	struct ethhdr *hdr;
+
+	hdr = (struct ethhdr *)skb_mac_header(skb);
+	return (hdr);
+}
+
 #endif	/* _LINUXKPI_LINUX_IF_ETHER_H_ */