1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #include "../../uts/common/rpcsvc/nsm_addr.h"
7 
8 #ifndef _KERNEL
9 #include <stdlib.h>
10 #endif /* !_KERNEL */
11 
12 /*
13  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
14  * Use is subject to license terms.
15  *
16  * CDDL HEADER START
17  *
18  * The contents of this file are subject to the terms of the
19  * Common Development and Distribution License, Version 1.0 only
20  * (the "License").  You may not use this file except in compliance
21  * with the License.
22  *
23  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
24  * or http://www.opensolaris.org/os/licensing.
25  * See the License for the specific language governing permissions
26  * and limitations under the License.
27  *
28  * When distributing Covered Code, include this CDDL HEADER in each
29  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
30  * If applicable, add the following below this CDDL HEADER, with the
31  * fields enclosed by brackets "[]" replaced with your own identifying
32  * information: Portions Copyright [yyyy] [name of copyright owner]
33  *
34  * CDDL HEADER END
35  */
36 
37 #pragma ident	"%Z%%M%	%I%	%E% SMI"
38 
39 /* from nsm_addr.x */
40 
41 /*
42  * This is the definition for the REG procedure which is used
43  * to register name/address pairs with statd.
44  */
45 
46 
47 bool_t
48 xdr_nsm_addr_res(xdrs, objp)
49 	XDR *xdrs;
50 	nsm_addr_res *objp;
51 {
52 
53 	rpc_inline_t *buf;
54 
55 	if (!xdr_enum(xdrs, (enum_t *)objp))
56 		return (FALSE);
57 	return (TRUE);
58 }
59 
60 bool_t
61 xdr_reg1args(xdrs, objp)
62 	XDR *xdrs;
63 	reg1args *objp;
64 {
65 
66 	rpc_inline_t *buf;
67 
68 	if (!xdr_u_int(xdrs, &objp->family))
69 		return (FALSE);
70 	if (!xdr_string(xdrs, &objp->name, 1024))
71 		return (FALSE);
72 	if (!xdr_netobj(xdrs, &objp->address))
73 		return (FALSE);
74 	return (TRUE);
75 }
76 
77 bool_t
78 xdr_reg1res(xdrs, objp)
79 	XDR *xdrs;
80 	reg1res *objp;
81 {
82 
83 	rpc_inline_t *buf;
84 
85 	if (!xdr_nsm_addr_res(xdrs, &objp->status))
86 		return (FALSE);
87 	return (TRUE);
88 }
89 
90 /*
91  * This is the definition for the UNREG procedure which is used
92  * to unregister an address (and its associated name, if that name
93  * has no other addresses registered with it) with statd.
94  */
95 
96 bool_t
97 xdr_unreg1args(xdrs, objp)
98 	XDR *xdrs;
99 	unreg1args *objp;
100 {
101 
102 	rpc_inline_t *buf;
103 
104 	if (!xdr_u_int(xdrs, &objp->family))
105 		return (FALSE);
106 	if (!xdr_string(xdrs, &objp->name, 1024))
107 		return (FALSE);
108 	if (!xdr_netobj(xdrs, &objp->address))
109 		return (FALSE);
110 	return (TRUE);
111 }
112 
113 bool_t
114 xdr_unreg1res(xdrs, objp)
115 	XDR *xdrs;
116 	unreg1res *objp;
117 {
118 
119 	rpc_inline_t *buf;
120 
121 	if (!xdr_nsm_addr_res(xdrs, &objp->status))
122 		return (FALSE);
123 	return (TRUE);
124 }
125 
126 /*
127  * This is the definition for the NSM address registration network
128  * protocol which is used to privately support address registration
129  * with the status daemon statd (NSM).
130  */
131