]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: don't use inetpeer to store metrics for routes.
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 5 Sep 2011 21:34:30 +0000 (21:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2011 04:57:26 +0000 (00:57 -0400)
commit931b0dd703ac4e314dd483f0bbe74db21461f592
tree2b194fa7556bcde37cdc4d28042a5bdf86d0f2ff
parent85c1362840d3c80814fddbb394799ed94221dfb8
ipv6: don't use inetpeer to store metrics for routes.

Current IPv6 implementation uses inetpeer to store metrics for
routes. The problem of inetpeer is that it doesn't take subnet
prefix length in to consideration. If two routes have the same
address but different prefix length, they share same inetpeer.
So changing metrics of one route also affects the other. The
fix is to allocate separate metrics storage for each route.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c