]> err.no Git - linux-2.6/commitdiff
SUNRPC: switch the RPC server to use the new rpcbind registration API
authorChuck Lever <chuck.lever@oracle.com>
Thu, 29 Mar 2007 20:48:16 +0000 (16:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 1 May 2007 05:17:13 +0000 (22:17 -0700)
Eventually this interface will support versions 3 and 4 of the rpcbind
protocol, which will allow the Linux RPC server to register services on
IPv6 addresses.

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

index b4db53ff143577a06fd72d2ef83418b4de194e9d..b7503c103ae814f012041a6f8f02e073c1d1ab26 100644 (file)
@@ -757,7 +757,7 @@ svc_register(struct svc_serv *serv, int proto, unsigned short port)
                        if (progp->pg_vers[i]->vs_hidden)
                                continue;
 
-                       error = rpc_register(progp->pg_prog, i, proto, port, &dummy);
+                       error = rpcb_register(progp->pg_prog, i, proto, port, &dummy);
                        if (error < 0)
                                break;
                        if (port && !dummy) {