ReactOS  0.4.15-dev-5488-ge316d61
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.


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 {
50  assert(xdrs != NULL);
51  assert(regs != NULL);
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
#define FALSE
Definition: types.h:117
struct @4799 regs[]
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().