mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
SUNRPC: Teach rpc_pipe.c to use new rpc_peeraddr() API
Hide the details of how the RPC client stores remote peer addresses from the RPC pipefs implementation. Test plan: Connectathon with Kerberos 5 authentication. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
f425eba437
commit
e7f7865743
1 changed files with 2 additions and 4 deletions
|
@ -327,10 +327,8 @@ rpc_show_info(struct seq_file *m, void *v)
|
||||||
seq_printf(m, "RPC server: %s\n", clnt->cl_server);
|
seq_printf(m, "RPC server: %s\n", clnt->cl_server);
|
||||||
seq_printf(m, "service: %s (%d) version %d\n", clnt->cl_protname,
|
seq_printf(m, "service: %s (%d) version %d\n", clnt->cl_protname,
|
||||||
clnt->cl_prog, clnt->cl_vers);
|
clnt->cl_prog, clnt->cl_vers);
|
||||||
seq_printf(m, "address: %u.%u.%u.%u\n",
|
seq_printf(m, "address: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_ADDR));
|
||||||
NIPQUAD(clnt->cl_xprt->addr.sin_addr.s_addr));
|
seq_printf(m, "protocol: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_PROTO));
|
||||||
seq_printf(m, "protocol: %s\n",
|
|
||||||
clnt->cl_xprt->prot == IPPROTO_UDP ? "udp" : "tcp");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue