Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276270
b: refs/heads/master
c: d01ff0a
h: refs/heads/master
v: v3
  • Loading branch information
Peter Pan(潘卫平) authored and David S. Miller committed Dec 2, 2011
1 parent 075eee7 commit 887b28d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ee5fa1e9970a16036e37c7b9d5ce81c778252fc
refs/heads/master: d01ff0a049f749e0bf10a35bb23edd012718c8c2
5 changes: 5 additions & 0 deletions trunk/net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,9 @@ static int devinet_conf_proc(ctl_table *ctl, int write,
void __user *buffer,
size_t *lenp, loff_t *ppos)
{
int old_value = *(int *)ctl->data;
int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
int new_value = *(int *)ctl->data;

if (write) {
struct ipv4_devconf *cnf = ctl->extra1;
Expand All @@ -1501,6 +1503,9 @@ static int devinet_conf_proc(ctl_table *ctl, int write,

if (cnf == net->ipv4.devconf_dflt)
devinet_copy_dflt_conf(net, i);
if (i == IPV4_DEVCONF_ACCEPT_LOCAL - 1)
if ((new_value == 0) && (old_value != 0))
rt_cache_flush(net, 0);
}

return ret;
Expand Down

0 comments on commit 887b28d

Please sign in to comment.