ipv6: don't set DST_NOCOUNT for remotely added routes
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 6 Mar 2014 16:51:57 +0000 (17:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:47:19 +0000 (06:47 -0700)
commit0e0e70fba39b7151196116409daf4d35e93d173c
tree06d35bede4da2c5ee19e0466da3881e8f9396422
parent0ceb6013f1a3b17eb187f598b3bf935e6c17d168
ipv6: don't set DST_NOCOUNT for remotely added routes

[ Upstream commit c88507fbad8055297c1d1e21e599f46960cbee39 ]

DST_NOCOUNT should only be used if an authorized user adds routes
locally. In case of routes which are added on behalf of router
advertisments this flag must not get used as it allows an unlimited
number of routes getting added remotely.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c