]> git.karo-electronics.de Git - linux-beck.git/commit
rxrpc: Provide a way for AFS to ask for the peer address of a call
authorDavid Howells <dhowells@redhat.com>
Tue, 30 Aug 2016 08:49:29 +0000 (09:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 30 Aug 2016 15:07:53 +0000 (16:07 +0100)
commit8324f0bcfbfc645cf248e4b93ab58341b7d3b135
treeb1a436af48a2771a6f7e31d8006186fbfb5556da
parente0661dfc5961cf14f255fa5466041a961ca2ebdf
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>
Documentation/networking/rxrpc.txt
fs/afs/cmservice.c
fs/afs/internal.h
fs/afs/rxrpc.c
fs/afs/server.c
include/net/af_rxrpc.h
net/rxrpc/peer_object.c