ReactOS 0.4.16-dev-92-g0c2cdca
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}
bool_t xdr_u_long(XDR *xdrs, u_long *ulp)
Definition: xdr.c:186
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define assert(x)
Definition: debug.h:53
struct @5012 regs[]

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