SUNRPC: rpc_create() default hostname should support AF_INET6 addresses
authorChuck Lever <chuck.lever@oracle.com>
Mon, 10 Dec 2007 19:56:24 +0000 (14:56 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:49 +0000 (02:05 -0500)
commit510deb0d7035d4fd465627deb3a119ca854f9e00
treeffc7af675601c88ef8843ddb5a64db8b8da7ee91
parent40c553193df41920de659f0446e5d214c862e827
SUNRPC: rpc_create() default hostname should support AF_INET6 addresses

If the ULP doesn't pass a hostname string to rpc_create(), it manufactures
one based on the passed-in address.  Be smart enough to handle an AF_INET6
address properly in this case.

Move the default servername logic before the xprt_create_transport() call
to simplify error handling in rpc_create().

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