]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit97bab73f987e2781129cd6f4b6379bf44d808cc6
tree40b10c4c021c8b5524c19f79fcfe4b0799b59952
parentc0efc887dcadbdbfe171f028acfab9c7c00e9dde
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