]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitecffdc1f46a342cb003a316834eb5ec5fa9803bf
treeffc7af675601c88ef8843ddb5a64db8b8da7ee91
parent9c8f6d752a32a008b7b89f96db68ab643f37977a
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