aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 3bdd1b1ad1b3..6e2851464f8f 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -117,15 +117,11 @@
117#define RT_GC_TIMEOUT (300*HZ) 117#define RT_GC_TIMEOUT (300*HZ)
118 118
119static int ip_rt_max_size; 119static int ip_rt_max_size;
120static int ip_rt_gc_timeout __read_mostly = RT_GC_TIMEOUT;
121static int ip_rt_gc_interval __read_mostly = 60 * HZ;
122static int ip_rt_gc_min_interval __read_mostly = HZ / 2;
123static int ip_rt_redirect_number __read_mostly = 9; 120static int ip_rt_redirect_number __read_mostly = 9;
124static int ip_rt_redirect_load __read_mostly = HZ / 50; 121static int ip_rt_redirect_load __read_mostly = HZ / 50;
125static int ip_rt_redirect_silence __read_mostly = ((HZ / 50) << (9 + 1)); 122static int ip_rt_redirect_silence __read_mostly = ((HZ / 50) << (9 + 1));
126static int ip_rt_error_cost __read_mostly = HZ; 123static int ip_rt_error_cost __read_mostly = HZ;
127static int ip_rt_error_burst __read_mostly = 5 * HZ; 124static int ip_rt_error_burst __read_mostly = 5 * HZ;
128static int ip_rt_gc_elasticity __read_mostly = 8;
129static int ip_rt_mtu_expires __read_mostly = 10 * 60 * HZ; 125static int ip_rt_mtu_expires __read_mostly = 10 * 60 * HZ;
130static int ip_rt_min_pmtu __read_mostly = 512 + 20 + 20; 126static int ip_rt_min_pmtu __read_mostly = 512 + 20 + 20;
131static int ip_rt_min_advmss __read_mostly = 256; 127static int ip_rt_min_advmss __read_mostly = 256;
@@ -2423,6 +2419,11 @@ void ip_rt_multicast_event(struct in_device *in_dev)
2423} 2419}
2424 2420
2425#ifdef CONFIG_SYSCTL 2421#ifdef CONFIG_SYSCTL
2422static int ip_rt_gc_timeout __read_mostly = RT_GC_TIMEOUT;
2423static int ip_rt_gc_interval __read_mostly = 60 * HZ;
2424static int ip_rt_gc_min_interval __read_mostly = HZ / 2;
2425static int ip_rt_gc_elasticity __read_mostly = 8;
2426
2426static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write, 2427static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write,
2427 void __user *buffer, 2428 void __user *buffer,
2428 size_t *lenp, loff_t *ppos) 2429 size_t *lenp, loff_t *ppos)