ipv4: flush route cache after change accept_local
commit4e1a937bf13f758c7be089f614e7e84bdafcc0af
authorWeiping Pan <panweiping3@gmail.com>
Thu, 1 Dec 2011 15:47:06 +0000 (1 15:47 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:29 +0000 (6 14:17 -0800)
tree1805ed6d020cd11266d0a8320d2eed7f6aa34962
parent6561c4fa576a9e83f4e2faf7b62dbd1d9b598c39
ipv4: flush route cache after change accept_local

[ Upstream commit d01ff0a049f749e0bf10a35bb23edd012718c8c2 ]

After reset ipv4_devconf->data[IPV4_DEVCONF_ACCEPT_LOCAL] to 0,
we should flush route cache, or it will continue receive packets with local
source address, which should be dropped.

Signed-off-by: Weiping Pan <panweiping3@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/devinet.c