diff options
Diffstat (limited to 'include/net/ip.h')
-rw-r--r-- | include/net/ip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index e9ea7c73f8c1..d603cd329c4e 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -250,6 +250,11 @@ int ip_decrease_ttl(struct iphdr *iph) | |||
250 | return --iph->ttl; | 250 | return --iph->ttl; |
251 | } | 251 | } |
252 | 252 | ||
253 | static inline bool ip_is_fragment(const struct iphdr *iph) | ||
254 | { | ||
255 | return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; | ||
256 | } | ||
257 | |||
253 | static inline | 258 | static inline |
254 | int ip_dont_fragment(struct sock *sk, struct dst_entry *dst) | 259 | int ip_dont_fragment(struct sock *sk, struct dst_entry *dst) |
255 | { | 260 | { |