so we dont pollute the namespace when not needed
int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rpc_cb cb, void *private_data)
{
struct rpc_pdu *pdu;
int rpc_pmap_getport_async(struct rpc_context *rpc, int program, int version, rpc_cb cb, void *private_data)
{
struct rpc_pdu *pdu;
pdu = rpc_allocate_pdu(rpc, PMAP_PROGRAM, PMAP_V2, PMAP_GETPORT, cb, private_data, (xdrproc_t)xdr_int, sizeof(uint32_t));
if (pdu == NULL) {
pdu = rpc_allocate_pdu(rpc, PMAP_PROGRAM, PMAP_V2, PMAP_GETPORT, cb, private_data, (xdrproc_t)xdr_int, sizeof(uint32_t));
if (pdu == NULL) {
m.vers = version;
m.prot = IPPROTO_TCP;
m.port = 0;
m.vers = version;
m.prot = IPPROTO_TCP;
m.port = 0;
- if (xdr_mapping(&pdu->xdr, &m) == 0) {
+ if (xdr_pmap_mapping(&pdu->xdr, &m) == 0) {
rpc_set_error(rpc, "XDR error: Failed to encode data for portmap/getport call");
rpc_free_pdu(rpc, pdu);
return -1;
rpc_set_error(rpc, "XDR error: Failed to encode data for portmap/getport call");
rpc_free_pdu(rpc, pdu);
return -1;
const PMAP_PORT = 111; /* portmapper port number */
const PMAP_PORT = 111; /* portmapper port number */
unsigned int prog;
unsigned int vers;
unsigned int prot;
unsigned int prog;
unsigned int vers;
unsigned int prot;
PMAP_NULL(void) = 0;
bool
PMAP_NULL(void) = 0;
bool
+ PMAP_SET(pmap_mapping) = 1;
- PMAP_UNSET(mapping) = 2;
+ PMAP_UNSET(pmap_mapping) = 2;
- PMAP_GETPORT(mapping) = 3;
+ PMAP_GETPORT(pmap_mapping) = 3;
call_result
PMAP_CALLIT(call_args) = 5;
call_result
PMAP_CALLIT(call_args) = 5;