]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix sysctl restarts...
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 19 Feb 2010 13:22:59 +0000 (13:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2010 23:40:50 +0000 (15:40 -0800)
commitb0d1aec95f9bcd8cf8038d86c94231139e5ae4db
treeb2df5a8589aaee30073665da46523a3908e8870a
parent51a5533132895a23d9b86945b34ff69f3f7fe029
net: Fix sysctl restarts...

Yuck.  It turns out that when we restart sysctls we were restarting
with the values already changed.  Which unfortunately meant that
the second time through we thought there was no change and skipped
all kinds of work, despite the fact that there was indeed a change.

I have fixed this the simplest way possible by restoring the changed
values when we restart the sysctl write.

One of my coworkers spotted this bug when after disabling forwarding
on an interface pings were still forwarded.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
net/ipv6/addrconf.c