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>
Sun, 27 Apr 2014 00:13:16 +0000 (17:13 -0700)
commitc3363b2d9eb62338b918426a080fa554c5323c7f
tree007ad9c230a579b55d3446f3fdfa60c6ab21ae76
parentd7fc329bf09d772a91a774fdedb039a0f8cf583d
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