patch-2.2.18 linux/net/sunrpc/pmap_clnt.c
Next file: linux/net/sunrpc/sched.c
Previous file: linux/net/sunrpc/clnt.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Sep 15 22:10:44 2000
- Orig file:
v2.2.17/net/sunrpc/pmap_clnt.c
- Orig date:
Fri Apr 21 12:47:17 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/net/sunrpc/pmap_clnt.c linux/net/sunrpc/pmap_clnt.c
@@ -41,6 +41,7 @@
{
struct rpc_portmap *map = &clnt->cl_pmap;
struct sockaddr_in *sap = &clnt->cl_xprt->addr;
+ struct rpc_message msg = { PMAP_GETPORT, map, &clnt->cl_port, NULL };
struct rpc_clnt *pmap_clnt;
struct rpc_task *child;
@@ -66,7 +67,7 @@
goto bailout;
/* Setup the call info struct */
- rpc_call_setup(child, PMAP_GETPORT, map, &clnt->cl_port, 0);
+ rpc_call_setup(child, &msg, 0);
/* ... and run the child task */
rpc_run_child(task, child, pmap_getport_done);
@@ -121,7 +122,7 @@
task->tk_action = NULL;
} else if (clnt->cl_port == 0) {
/* Program not registered */
- task->tk_status = -EACCES;
+ task->tk_status = -EPROTONOSUPPORT;
task->tk_action = NULL;
} else {
/* byte-swap port number first */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)