]> 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)
commit209502bf97f731fc118fd3f5e6aa10c2e9bf8642
tree2b194fa7556bcde37cdc4d28042a5bdf86d0f2ff
parentb591d9abead47e5f3aaa346f3c5f03ef58090ae3
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