diff options
author | Frank van Maarseveen <frankvm@frankvm.com> | 2007-07-09 16:23:35 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:49 -0400 |
commit | d3bc9a1deb8964d774af8535814cb91bf8f6def0 (patch) | |
tree | c8ae19f3684b40a4c53d948adc3b0f688d373497 /net/sunrpc/clnt.c | |
parent | a97476926ec061f90b77da478620ea6dc71a3237 (diff) |
SUNRPC client: add interface for binding to a local address
In addition to binding to a local privileged port the NFS client should
allow binding to a specific local address. This is used by the server
for callbacks. The patch adds the necessary interface.
Signed-off-by: Frank van Maarseveen <frankvm@frankvm.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 25bbf2d7f603..5d3fe7b22488 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -236,6 +236,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
236 | struct rpc_clnt *clnt; | 236 | struct rpc_clnt *clnt; |
237 | struct rpc_xprtsock_create xprtargs = { | 237 | struct rpc_xprtsock_create xprtargs = { |
238 | .proto = args->protocol, | 238 | .proto = args->protocol, |
239 | .srcaddr = args->saddress, | ||
239 | .dstaddr = args->address, | 240 | .dstaddr = args->address, |
240 | .addrlen = args->addrsize, | 241 | .addrlen = args->addrsize, |
241 | .timeout = args->timeout | 242 | .timeout = args->timeout |