ReactOS  0.4.15-dev-2776-g4130f0b
pmap_prot.c File Reference
#include <wintirpc.h>
#include <assert.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/pmap_prot.h>
Include dependency graph for pmap_prot.c:

Go to the source code of this file.

Functions

bool_t xdr_pmap (XDR *xdrs, struct pmap *regs)
 

Function Documentation

◆ xdr_pmap()

bool_t xdr_pmap ( XDR xdrs,
struct pmap regs 
)

Definition at line 45 of file pmap_prot.c.

48 {
49 
50  assert(xdrs != NULL);
51  assert(regs != NULL);
52 
53  if (xdr_u_long(xdrs, &regs->pm_prog) &&
54  xdr_u_long(xdrs, &regs->pm_vers) &&
55  xdr_u_long(xdrs, &regs->pm_prot))
56  return (xdr_u_long(xdrs, &regs->pm_port));
57  return (FALSE);
58 }
#define assert(x)
Definition: debug.h:53
struct @4807 regs[]
#define FALSE
Definition: types.h:117
bool_t xdr_u_long(XDR *xdrs, u_long *ulp)
Definition: xdr.c:186
#define NULL
Definition: types.h:112

Referenced by __rpcb_findaddr_timed(), pmap_getport(), and xdr_pmaplist().