diff options
Diffstat (limited to 'include/net/ip.h')
-rw-r--r-- | include/net/ip.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 66dd4914920..aa76c7a4d9c 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -228,8 +228,6 @@ extern struct ctl_path net_ipv4_ctl_path[]; | |||
228 | extern int inet_peer_threshold; | 228 | extern int inet_peer_threshold; |
229 | extern int inet_peer_minttl; | 229 | extern int inet_peer_minttl; |
230 | extern int inet_peer_maxttl; | 230 | extern int inet_peer_maxttl; |
231 | extern int inet_peer_gc_mintime; | ||
232 | extern int inet_peer_gc_maxtime; | ||
233 | 231 | ||
234 | /* From ip_output.c */ | 232 | /* From ip_output.c */ |
235 | extern int sysctl_ip_dynaddr; | 233 | extern int sysctl_ip_dynaddr; |
@@ -238,6 +236,11 @@ extern void ipfrag_init(void); | |||
238 | 236 | ||
239 | extern void ip_static_sysctl_init(void); | 237 | extern void ip_static_sysctl_init(void); |
240 | 238 | ||
239 | static inline bool ip_is_fragment(const struct iphdr *iph) | ||
240 | { | ||
241 | return (iph->frag_off & htons(IP_MF | IP_OFFSET)) != 0; | ||
242 | } | ||
243 | |||
241 | #ifdef CONFIG_INET | 244 | #ifdef CONFIG_INET |
242 | #include <net/dst.h> | 245 | #include <net/dst.h> |
243 | 246 | ||
@@ -401,7 +404,8 @@ enum ip_defrag_users { | |||
401 | __IP_DEFRAG_CONNTRACK_BRIDGE_IN = IP_DEFRAG_CONNTRACK_BRIDGE_IN + USHRT_MAX, | 404 | __IP_DEFRAG_CONNTRACK_BRIDGE_IN = IP_DEFRAG_CONNTRACK_BRIDGE_IN + USHRT_MAX, |
402 | IP_DEFRAG_VS_IN, | 405 | IP_DEFRAG_VS_IN, |
403 | IP_DEFRAG_VS_OUT, | 406 | IP_DEFRAG_VS_OUT, |
404 | IP_DEFRAG_VS_FWD | 407 | IP_DEFRAG_VS_FWD, |
408 | IP_DEFRAG_AF_PACKET, | ||
405 | }; | 409 | }; |
406 | 410 | ||
407 | int ip_defrag(struct sk_buff *skb, u32 user); | 411 | int ip_defrag(struct sk_buff *skb, u32 user); |