ipv4: flush route cache after change accept_local
authorWeiping Pan <panweiping3@gmail.com>
Thu, 1 Dec 2011 15:47:06 +0000 (15:47 +0000)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Wed, 11 Jan 2012 18:31:07 +0000 (10:31 -0800)
commit0f98ee27faf8a6ec88bac804b19e79854ea0e0b8
tree0bf052168a52160ca5476d8cf977d6b8caf408b1
parentb4758165fe80041d797687f58e94b08bfbae3fd4
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>
Change-Id: I4e1a937bf13f758c7be089f614e7e84bdafcc0af
Reviewed-on: http://git-master/r/74222
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
net/ipv4/devinet.c