16 lines
264 B
C
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
|