aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-08-30 04:49:29 -0400
committerDavid Howells <dhowells@redhat.com>2016-08-30 11:07:53 -0400
commit8324f0bcfbfc645cf248e4b93ab58341b7d3b135 (patch)
treeb1a436af48a2771a6f7e31d8006186fbfb5556da /Documentation/networking
parente0661dfc5961cf14f255fa5466041a961ca2ebdf (diff)
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 'Documentation/networking')
-rw-r--r--Documentation/networking/rxrpc.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/networking/rxrpc.txt b/Documentation/networking/rxrpc.txt
index 70c926ae212d..dfe0b008df74 100644
--- a/Documentation/networking/rxrpc.txt
+++ b/Documentation/networking/rxrpc.txt
@@ -868,6 +868,13 @@ The kernel interface functions are as follows:
868 This is used to allocate a null RxRPC key that can be used to indicate 868 This is used to allocate a null RxRPC key that can be used to indicate
869 anonymous security for a particular domain. 869 anonymous security for a particular domain.
870 870
871 (*) Get the peer address of a call.
872
873 void rxrpc_kernel_get_peer(struct socket *sock, struct rxrpc_call *call,
874 struct sockaddr_rxrpc *_srx);
875
876 This is used to find the remote peer address of a call.
877
871 878
872======================= 879=======================
873CONFIGURABLE PARAMETERS 880CONFIGURABLE PARAMETERS