ipv4: flush route cache after change accept_local
commit6c3efb1526c3fcdab3e5bbc9c77710b306493507
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:14:09 +0000 (6 14:14 -0800)
treeaed98fa349f35e6800a4a803f291ce62b196c18a
parent0e5fe3ed8d751c7be333fa193882e91dcc289158
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