]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: flush route cache after change accept_local
authorWeiping Pan <panweiping3@gmail.com>
Thu, 1 Dec 2011 15:47:06 +0000 (15:47 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:30 +0000 (13:02 -0800)
commitaad0e1cc14fa82a36552138af2bce6305996c1fa
treeda84160c510c674f33d84e41499346ab8115b303
parentd2e7beb513b7cd10d3f67d9dd0e918052aa84c1a
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