Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103221
b: refs/heads/master
c: 639e104
h: refs/heads/master
i:
  103219: fb19a8b
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jul 6, 2008
1 parent 0130ce5 commit 2d8ab55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae299fc051aa68ca6ef1807c37bb92d9b6ff817c
refs/heads/master: 639e104facec20f64f2eb940851ae45e5f255e6b
11 changes: 8 additions & 3 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2829,14 +2829,20 @@ void ip_rt_multicast_event(struct in_device *in_dev)
}

#ifdef CONFIG_SYSCTL
static int flush_delay;

static int ipv4_sysctl_rtcache_flush(ctl_table *ctl, int write,
struct file *filp, void __user *buffer,
size_t *lenp, loff_t *ppos)
{
if (write) {
int flush_delay;
static DEFINE_MUTEX(flush_mutex);

mutex_lock(&flush_mutex);
ctl->data = &flush_delay;
proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
ctl->data = NULL;
mutex_unlock(&flush_mutex);

rt_cache_flush(&init_net, flush_delay);
return 0;
}
Expand Down Expand Up @@ -2865,7 +2871,6 @@ ctl_table ipv4_route_table[] = {
{
.ctl_name = NET_IPV4_ROUTE_FLUSH,
.procname = "flush",
.data = &flush_delay,
.maxlen = sizeof(int),
.mode = 0200,
.proc_handler = &ipv4_sysctl_rtcache_flush,
Expand Down

0 comments on commit 2d8ab55

Please sign in to comment.