ReactOS  0.4.15-dev-499-g1f31905
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
smooth NULL
Definition: ftsmooth.c:416
bool_t xdr_u_long(XDR *xdrs, u_long *ulp)
Definition: xdr.c:186
struct @4100 regs[]

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