X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Fnet%2Fip.h;h=c819e4d99938f18c3d9aa774275df9496d87dcec;hb=cb25142c50cd3a92e779ca1ce6f61380ffc75927;hp=b18b968b60b2acdbdb27e62b634664a4e074e116;hpb=22bcc0e70becd88bf895c44885d63704affe4284;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/net/ip.h b/datapath/linux/compat/include/net/ip.h index b18b968b6..c819e4d99 100644 --- a/datapath/linux/compat/include/net/ip.h +++ b/datapath/linux/compat/include/net/ip.h @@ -4,11 +4,22 @@ #include_next #include -#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); +#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 + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0) +static inline void rpl_inet_get_local_port_range(struct net *net, int *low, + int *high) +{ + inet_get_local_port_range(low, high); +} +#define inet_get_local_port_range rpl_inet_get_local_port_range -#endif /* linux kernel < 2.6.25 */ +#endif #endif