[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sun RPC libraries and other stories



On Tue, 2008-11-18 at 01:33 +0000, Simon Phipps wrote:
> Try OpenGrok:  http://src.opensolaris.org/source/

The documentation for portmap says that some code is derived from "the
RPCSRC 4.0 and the TIRPC source distributions".  The two source files
labelled with Sun copyright are portmap.c and from_local.c.

Many of the functions in portmap.c seem to correspond to
rpcbind (usr/src/cmd/rpcbind) in OpenSolaris:

portmap.c:find_service() - pmap_svc.c:find_service_pmap()
portmap.c:reg_service() - pmap_svc.c:pmap_service()
portmap.c:xdr_encap_parms() - rpcb_svc_com.c:xdr_encap_parms()
portmap.c:xdr_rmtcall_args() - rpcb_svc_com.c:xdr_rmtcall_args()
portmap.c:xdr_rmtcall_result() - rpcb_svc_com.c:xdr_rmtcall_result()
portmap.c:xdr_opaque_parms() - rpcb_svc_com.c:xdr_opaque_parms()

The key function in from_local.c seems to correspond to
usr/src/ucblib/librpcsoc/get_myaddress.c:

from_local.c:find_local() - get_myaddress.c:get_myaddress()

Ben.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: