Project

General

Profile

Bug #4729

__rpcb_findaddr_timed should try rpcbind protocol 4 first

Added by Gary Mills almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2014-04-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.

History

#1

Updated by Electric Monk over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit a9e987e05eeb8cc8a9777541465eeea09e72e9eb

commit  a9e987e05eeb8cc8a9777541465eeea09e72e9eb
Author: Gary Mills <gary_mills@fastmail.fm>
Date:   2014-07-22T14:25:30.000Z

    4729 __rpcb_findaddr_timed should try rpcbind protocol 4 first
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Also available in: Atom PDF