aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-06-25 17:24:47 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-07-09 12:09:36 -0400
commit8842413aa4c3220ce9313791f99808fc149ca16d (patch)
tree6b0869e818f7d525620c973b52242825c2ec109a /net/sunrpc
parent6a774051573042cdeb57e81f77b36c25e5856739 (diff)
SUNRPC: Use GETADDR for rpcbind version 4 queries
Some rpcbind servers that do support rpcbind version 4 do not support the GETVERSADDR procedure. Use GETADDR for querying rpcbind servers via rpcbind version 4 instead of GETVERSADDR. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpcb_clnt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index a70cc1e11792..625ba72e624a 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -587,6 +587,7 @@ static struct rpc_procinfo rpcb_procedures3[] = {
587static struct rpc_procinfo rpcb_procedures4[] = { 587static struct rpc_procinfo rpcb_procedures4[] = {
588 PROC(SET, mapping, set), 588 PROC(SET, mapping, set),
589 PROC(UNSET, mapping, set), 589 PROC(UNSET, mapping, set),
590 PROC(GETADDR, getaddr, getaddr),
590 PROC(GETVERSADDR, getaddr, getaddr), 591 PROC(GETVERSADDR, getaddr, getaddr),
591}; 592};
592 593
@@ -594,7 +595,7 @@ static struct rpcb_info rpcb_next_version[] = {
594#ifdef CONFIG_SUNRPC_BIND34 595#ifdef CONFIG_SUNRPC_BIND34
595 { 596 {
596 .rpc_vers = RPCBVERS_4, 597 .rpc_vers = RPCBVERS_4,
597 .rpc_proc = &rpcb_procedures4[RPCBPROC_GETVERSADDR], 598 .rpc_proc = &rpcb_procedures4[RPCBPROC_GETADDR],
598 }, 599 },
599 { 600 {
600 .rpc_vers = RPCBVERS_3, 601 .rpc_vers = RPCBVERS_3,
@@ -614,7 +615,7 @@ static struct rpcb_info rpcb_next_version6[] = {
614#ifdef CONFIG_SUNRPC_BIND34 615#ifdef CONFIG_SUNRPC_BIND34
615 { 616 {
616 .rpc_vers = RPCBVERS_4, 617 .rpc_vers = RPCBVERS_4,
617 .rpc_proc = &rpcb_procedures4[RPCBPROC_GETVERSADDR], 618 .rpc_proc = &rpcb_procedures4[RPCBPROC_GETADDR],
618 }, 619 },
619 { 620 {
620 .rpc_vers = RPCBVERS_3, 621 .rpc_vers = RPCBVERS_3,