]> 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)
commit79de82cafe4153ea01e764831482cab8ee852bc5
tree40b10c4c021c8b5524c19f79fcfe4b0799b59952
parentc4577562afa19d44e919f82061aa9da2fab5f2d2
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