1*45085Smckusick /* @(#)pmap_prot.c 2.1 88/07/29 4.0 RPCSRC */
2*45085Smckusick /*
3*45085Smckusick * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
4*45085Smckusick * unrestricted use provided that this legend is included on all tape
5*45085Smckusick * media and as a part of the software program in whole or part. Users
6*45085Smckusick * may copy or modify Sun RPC without charge, but are not authorized
7*45085Smckusick * to license or distribute it to anyone else except as part of a product or
8*45085Smckusick * program developed by the user.
9*45085Smckusick *
10*45085Smckusick * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
11*45085Smckusick * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
12*45085Smckusick * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13*45085Smckusick *
14*45085Smckusick * Sun RPC is provided with no support and without any obligation on the
15*45085Smckusick * part of Sun Microsystems, Inc. to assist in its use, correction,
16*45085Smckusick * modification or enhancement.
17*45085Smckusick *
18*45085Smckusick * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19*45085Smckusick * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
20*45085Smckusick * OR ANY PART THEREOF.
21*45085Smckusick *
22*45085Smckusick * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23*45085Smckusick * or profits or other special, indirect and consequential damages, even if
24*45085Smckusick * Sun has been advised of the possibility of such damages.
25*45085Smckusick *
26*45085Smckusick * Sun Microsystems, Inc.
27*45085Smckusick * 2550 Garcia Avenue
28*45085Smckusick * Mountain View, California 94043
29*45085Smckusick */
30*45085Smckusick #if !defined(lint) && defined(SCCSIDS)
31*45085Smckusick static char sccsid[] = "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";
32*45085Smckusick #endif
33*45085Smckusick
34*45085Smckusick /*
35*45085Smckusick * pmap_prot.c
36*45085Smckusick * Protocol for the local binder service, or pmap.
37*45085Smckusick *
38*45085Smckusick * Copyright (C) 1984, Sun Microsystems, Inc.
39*45085Smckusick */
40*45085Smckusick
41*45085Smckusick #include <rpc/types.h>
42*45085Smckusick #include <rpc/xdr.h>
43*45085Smckusick #include <rpc/pmap_prot.h>
44*45085Smckusick
45*45085Smckusick
46*45085Smckusick bool_t
xdr_pmap(xdrs,regs)47*45085Smckusick xdr_pmap(xdrs, regs)
48*45085Smckusick XDR *xdrs;
49*45085Smckusick struct pmap *regs;
50*45085Smckusick {
51*45085Smckusick
52*45085Smckusick if (xdr_u_long(xdrs, ®s->pm_prog) &&
53*45085Smckusick xdr_u_long(xdrs, ®s->pm_vers) &&
54*45085Smckusick xdr_u_long(xdrs, ®s->pm_prot))
55*45085Smckusick return (xdr_u_long(xdrs, ®s->pm_port));
56*45085Smckusick return (FALSE);
57*45085Smckusick }
58