]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Hide route peer accesses behind helpers.
authorDavid S. Miller <davem@davemloft.net>
Sun, 10 Jun 2012 05:36:36 +0000 (22:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 09:08:47 +0000 (02:08 -0700)
commit268b3da4114493ac108ac556d2971b2d99b06767
tree40b10c4c021c8b5524c19f79fcfe4b0799b59952
parentdda8ac0715038106a87a1aa8c2dbac4d5f732e3a
inet: Hide route peer accesses behind helpers.

We encode the pointer(s) into an unsigned long with one state bit.

The state bit is used so we can store the inetpeer tree root to use
when resolving the peer later.

Later the peer roots will be per-FIB table, and this change works to
facilitate that.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inetpeer.h
include/net/ip6_fib.h
include/net/ip6_route.h
include/net/route.h
net/ipv4/route.c
net/ipv4/xfrm4_policy.c
net/ipv6/route.c
net/ipv6/xfrm6_policy.c