mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
Following patch restructures vxlan tunneling so that it is more in sync with upstream vxlan tunneling code. Signed-off-by: Pravin Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
22 lines
474 B
C
22 lines
474 B
C
#ifndef __NET_IP_WRAPPER_H
|
|
#define __NET_IP_WRAPPER_H 1
|
|
|
|
#include_next <net/ip.h>
|
|
|
|
#include <linux/version.h>
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
|
|
|
|
extern int __ip_local_out(struct sk_buff *skb);
|
|
extern int ip_local_out(struct sk_buff *skb);
|
|
|
|
#endif /* linux kernel < 2.6.25 */
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
|
|
static inline bool ip_is_fragment(const struct iphdr *iph)
|
|
{
|
|
return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|