]> err.no Git - linux-2.6/commit
SUNRPC: Create API for displaying remote peer address
authorChuck Lever <chuck.lever@oracle.com>
Wed, 23 Aug 2006 00:06:18 +0000 (20:06 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Sep 2006 03:24:48 +0000 (23:24 -0400)
commitf425eba437f0051bde979ea2eef8bc875a77cd00
treec64aae65d42c1bd67604ec0ffe957c03dc3233fe
parentedb267a688fcee5335d596752f117a30c7152e44
SUNRPC: Create API for displaying remote peer address

Provide an API for formatting the remote peer address for printing without
exposing its internal structure.  The address could be dynamic, so we
support a function call to get the address rather than reading it straight
out of a structure.

Test-plan:
Destructive testing (unplugging the network temporarily).  Probably need
to rig a server where certain services aren't running, or that returns an
error for some typical operation.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c