ipv4: flush route cache after change accept_local
authorPeter Pan(潘卫平) <panweiping3@gmail.com>
Thu, 1 Dec 2011 15:47:06 +0000 (15:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2011 02:46:12 +0000 (21:46 -0500)
commitd01ff0a049f749e0bf10a35bb23edd012718c8c2
tree84525ced20b7a48c17d26d73cd79dc86ee045738
parent1ee5fa1e9970a16036e37c7b9d5ce81c778252fc
ipv4: flush route cache after change accept_local

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>
net/ipv4/devinet.c