Files
openflow/datapath/linux-2.4/compat-2.4/include/linux/if_ether.h
T
2008-03-04 13:12:53 -08:00

16 lines
281 B
C

#ifndef __LINUX_IF_ETHER_WRAPPER_H
#define __LINUX_IF_ETHER_WRAPPER_H 1
#include_next <linux/if_ether.h>
#ifdef __KERNEL__
#include <linux/skbuff.h>
static inline struct ethhdr *eth_hdr(const struct sk_buff *skb)
{
return (struct ethhdr *)skb_mac_header(skb);
}
#endif
#endif