]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a80bc773fa6279bd0ed23f50f590372baedf237
tree84525ced20b7a48c17d26d73cd79dc86ee045738
parent033cba4fed40a8e1731be53535fe0a89c364a4a3
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