blob: 6893ba51f3a5a361e96bc81705bf9a7f4e44ce5b [file] [log] [blame]
#ifndef __BACKPORT_NET_IP_H
#define __BACKPORT_NET_IP_H
#include_next <net/ip.h>
#include <linux/version.h>
#if LINUX_VERSION_IS_LESS(3,1,0)
/* Backports 56f8a75c */
static inline bool ip_is_fragment(const struct iphdr *iph)
{
return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0;
}
#endif
#endif /* __BACKPORT_NET_IP_H */