__rpcb_findaddr_timed should try rpcbind protocol 4 first
The function __rpcb_findaddr_timed() in rpcb_clnt.c is used internally to obtain the address or port number of a remote RPC service. It does this by querying the rpcbind server running on the same remote host. The library functions rpcb_getaddr(), clnt_tp_create_timed(), clnt_tp_create(), and clnt_create() all call __rpcb_findaddr_timed() .
The current version of this function tries three versions of the rpcbind protocol in the order 2, 4, and 3. Since version 2 is more than 20 years old, and rpcbind servers now support version 4, as well as 3 and 2, the order should be changed to 4, 3, and 2.
This proposal is only to change __rpcb_findaddr_timed() . All of the legacy library functions described in rpc_soc(3NSL) will be left intact, and will continue to be supported in illumos.
Updated by Electric Monk over 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit a9e987e05eeb8cc8a9777541465eeea09e72e9eb Author: Gary Mills <firstname.lastname@example.org> Date: 2014-07-22T14:25:30.000Z 4729 __rpcb_findaddr_timed should try rpcbind protocol 4 first Reviewed by: Marcel Telka <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>