SUNRPC: transport switch API for setting port number
authorChuck Lever <cel@netapp.com>
Tue, 3 Jan 2006 08:55:51 +0000 (09:55 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Jan 2006 19:58:56 +0000 (14:58 -0500)
commit922004120b10dcb0ce04b55014168e8a7a8c1a0e
tree4209bbd1043d9ddf09f2f277a65af758aa3631da
parent35f5a422ce1af836007f811b613c440d0e348e06
SUNRPC: transport switch API for setting port number

 At some point, transport endpoint addresses will no longer be IPv4.  To hide
 the structure of the rpc_xprt's address field from ULPs and port mappers,
 add an API for setting the port number during an RPC bind operation.

 Test-plan:
 Destructive testing (unplugging the network temporarily).  Connectathon
 with UDP and TCP.  NFSv2/3 and NFSv4 mounting should be carefully checked.
 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 <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/pmap_clnt.c
net/sunrpc/xprtsock.c