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

16 lines
264 B
C

#ifndef __LINUX_IP_WRAPPER_H
#define __LINUX_IP_WRAPPER_H 1
#include_next <linux/ip.h>
#ifdef __KERNEL__
#include <linux/skbuff.h>
static inline struct iphdr *ip_hdr(const struct sk_buff *skb)
{
return (struct iphdr *)skb_network_header(skb);
}
#endif
#endif