mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Patrick McHardy <[email protected]>
This commit is contained in:
parent
b38f6eddee
commit
7c070aa947
3 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue