diff options
author | David Howells <dhowells@redhat.com> | 2016-08-30 09:49:29 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-08-30 16:07:53 +0100 |
commit | 8324f0bcfbfc645cf248e4b93ab58341b7d3b135 (patch) | |
tree | b1a436af48a2771a6f7e31d8006186fbfb5556da /include/net/af_rxrpc.h | |
parent | e0661dfc5961cf14f255fa5466041a961ca2ebdf (diff) | |
download | linux-8324f0bcfbfc645cf248e4b93ab58341b7d3b135.tar.bz2 |
rxrpc: Provide a way for AFS to ask for the peer address of a call
Provide a function so that kernel users, such as AFS, can ask for the peer
address of a call:
void rxrpc_kernel_get_peer(struct rxrpc_call *call,
struct sockaddr_rxrpc *_srx);
In the future the kernel service won't get sk_buffs to look inside.
Further, this allows us to hide any canonicalisation inside AF_RXRPC for
when IPv6 support is added.
Also propagate this through to afs_find_server() and issue a warning if we
can't handle the address family yet.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/net/af_rxrpc.h')
-rw-r--r-- | include/net/af_rxrpc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index 7b0f88699b25..f9224e835d43 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h @@ -49,5 +49,7 @@ int rxrpc_kernel_get_error_number(struct sk_buff *); void rxrpc_kernel_free_skb(struct sk_buff *); struct rxrpc_call *rxrpc_kernel_accept_call(struct socket *, unsigned long); int rxrpc_kernel_reject_call(struct socket *); +void rxrpc_kernel_get_peer(struct socket *, struct rxrpc_call *, + struct sockaddr_rxrpc *); #endif /* _NET_RXRPC_H */ |