diff options
author | Shan Wei <shanwei@cn.fujitsu.com> | 2010-01-20 10:42:41 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-01-20 10:42:41 +0100 |
commit | 7c070aa947d1a4105742378579c267f6e7fd08a1 (patch) | |
tree | 51e0b9344d224fbcfed562361559d881c5fa45de /include/net | |
parent | b38f6eddeee510ce8178c2d2db54ed25f1d7cb63 (diff) | |
download | op-kernel-dev-7c070aa947d1a4105742378579c267f6e7fd08a1.zip op-kernel-dev-7c070aa947d1a4105742378579c267f6e7fd08a1.tar.gz |
IPv6: reassembly: replace magic number with macro definitions
Use macro to define high/low thresh value, refer to IPV6_FRAG_TIMEOUT.
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ipv6.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index ccab594..299bbf5 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -246,6 +246,8 @@ extern int ipv6_opt_accepted(struct sock *sk, struct sk_buff *skb); int ip6_frag_nqueues(struct net *net); int ip6_frag_mem(struct net *net); +#define IPV6_FRAG_HIGH_THRESH 262144 /* == 256*1024 */ +#define IPV6_FRAG_LOW_THRESH 196608 /* == 192*1024 */ #define IPV6_FRAG_TIMEOUT (60*HZ) /* 60 seconds */ extern int __ipv6_addr_type(const struct in6_addr *addr); |