diff options
author | Roberto Bergantinos Corpas <rbergant@redhat.com> | 2022-07-14 15:54:21 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-07-16 14:16:55 -0400 |
commit | d81c89c161521c619e5863cd44714094ba14e4b9 (patch) | |
tree | 2fddecba5e4aa8674214762cd5c8c128fd18f1ac /tirpc/rpc | |
parent | 63f3b9e883231ca08cf9c3cd8f5d582584412d94 (diff) | |
download | ti-rpc-d81c89c161521c619e5863cd44714094ba14e4b9.tar.gz |
rpcb_clnt.c add mechanism to try v2 protocol firstlibtirpc-1-3-3-rc3
There have been previous attempts to revert protocol tryout
algorithm from v4,v3,v2 to previous v2,v4,v3 :
https://www.spinics.net/lists/linux-nfs/msg89228.html
Apart from GETADDR/NAT issue originating that proposed change,
its possible that some legacy custom applications still use
v2 of protocol with libtirpc.
The change proposed here, introduces an environment variable
"RPCB_V2FIRST" so that, if defined, old behaviour is used.
This is more flexible and allow us to selectively pick what
application reverts to old behaviour instead of a system-wide
change.
Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tirpc/rpc')
-rw-r--r-- | tirpc/rpc/pmap_prot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tirpc/rpc/pmap_prot.h b/tirpc/rpc/pmap_prot.h index 75354ce..7718b8b 100644 --- a/tirpc/rpc/pmap_prot.h +++ b/tirpc/rpc/pmap_prot.h @@ -84,6 +84,8 @@ #define PMAPPROC_DUMP ((u_long)4) #define PMAPPROC_CALLIT ((u_long)5) +#define V2FIRST "RPCB_V2FIRST" + struct pmap { long unsigned pm_prog; long unsigned pm_vers; |