diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/clnt.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 94768cf5fd5b..e5b19e348d88 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -554,6 +554,19 @@ size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) | |||
554 | } | 554 | } |
555 | EXPORT_SYMBOL(rpc_peeraddr); | 555 | EXPORT_SYMBOL(rpc_peeraddr); |
556 | 556 | ||
557 | /** | ||
558 | * rpc_peeraddr2str - return remote peer address in printable format | ||
559 | * @clnt: RPC client structure | ||
560 | * @format: address format | ||
561 | * | ||
562 | */ | ||
563 | char *rpc_peeraddr2str(struct rpc_clnt *clnt, enum rpc_display_format_t format) | ||
564 | { | ||
565 | struct rpc_xprt *xprt = clnt->cl_xprt; | ||
566 | return xprt->ops->print_addr(xprt, format); | ||
567 | } | ||
568 | EXPORT_SYMBOL(rpc_peeraddr2str); | ||
569 | |||
557 | void | 570 | void |
558 | rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize) | 571 | rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize) |
559 | { | 572 | { |