]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Remove route peer binding assertions.
authorDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2011 22:55:22 +0000 (14:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2011 22:55:22 +0000 (14:55 -0800)
commit4da78550a3441b6f7f437a4bac0f2842cc7e7cfd
treeb632e0a811dee0637017d6f024e5efade412f0d1
parentac03e8fc8e55c20e357a414d8e793be986b13d45
ipv6: Remove route peer binding assertions.

They are bogus.  The basic idea is that I wanted to make sure
that prefixed routes never bind to peers.

The test I used was whether RTF_CACHE was set.

But first of all, the RTF_CACHE flag is set at different spots
depending upon which ip6_rt_copy() caller you're talking about.

I've validated all of the code paths, and even in the future
where we bind peers more aggressively (for route metric COW'ing)
we never bind to prefix'd routes, only fully specified ones.
This even applies when addrconf or icmp6 routes are allocated.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c