]>
git.saurik.com Git - apple/network_cmds.git/blob - ypserv.tproj/ypserv_xdr.c
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
26 * Please do not edit this file.
27 * It was generated using rpcgen.
32 static char rcsid
[] = "$OpenBSD: ypserv_xdr.c,v 1.3 1996/05/30 09:53:31 deraadt Exp $";
37 xdr_ypstat(xdrs
, objp
)
44 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
51 xdr_ypxfrstat(xdrs
, objp
)
58 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
66 xdr_domainname(xdrs
, objp
)
73 if (!xdr_string(xdrs
, objp
, YPMAXDOMAIN
)) {
81 xdr_mapname(xdrs
, objp
)
88 if (!xdr_string(xdrs
, objp
, YPMAXMAP
)) {
96 xdr_peername(xdrs
, objp
)
103 if (!xdr_string(xdrs
, objp
, YPMAXPEER
)) {
111 xdr_keydat(xdrs
, objp
)
118 if (!xdr_bytes(xdrs
, (char **)&objp
->keydat_val
, (u_int
*)&objp
->keydat_len
, YPMAXRECORD
)) {
126 xdr_valdat(xdrs
, objp
)
133 if (!xdr_bytes(xdrs
, (char **)&objp
->valdat_val
, (u_int
*)&objp
->valdat_len
, YPMAXRECORD
)) {
140 xdr_ypmap_parms(xdrs
, objp
)
147 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
150 if (!xdr_mapname(xdrs
, &objp
->map
)) {
153 if (!xdr_u_int(xdrs
, &objp
->ordernum
)) {
156 if (!xdr_peername(xdrs
, &objp
->peer
)) {
164 xdr_ypreq_key(xdrs
, objp
)
171 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
174 if (!xdr_mapname(xdrs
, &objp
->map
)) {
177 if (!xdr_keydat(xdrs
, &objp
->key
)) {
185 xdr_ypreq_nokey(xdrs
, objp
)
192 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
195 if (!xdr_mapname(xdrs
, &objp
->map
)) {
202 xdr_ypreq_xfr(xdrs
, objp
)
209 if (!xdr_ypmap_parms(xdrs
, &objp
->map_parms
)) {
212 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
215 if (!xdr_u_int(xdrs
, &objp
->prog
)) {
218 if (!xdr_u_int(xdrs
, &objp
->port
)) {
226 xdr_ypresp_val(xdrs
, objp
)
233 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
236 if (!xdr_valdat(xdrs
, &objp
->val
)) {
244 xdr_ypresp_key_val(xdrs
, objp
)
246 ypresp_key_val
*objp
;
251 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
254 if (!xdr_valdat(xdrs
, &objp
->val
)) {
257 if (!xdr_keydat(xdrs
, &objp
->key
)) {
265 xdr_ypresp_master(xdrs
, objp
)
272 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
275 if (!xdr_peername(xdrs
, &objp
->peer
)) {
283 xdr_ypresp_order(xdrs
, objp
)
290 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
293 if (!xdr_u_int(xdrs
, &objp
->ordernum
)) {
301 xdr_ypresp_all(xdrs
, objp
)
308 if (!xdr_bool(xdrs
, &objp
->more
)) {
311 switch (objp
->more
) {
313 if (!xdr_ypresp_key_val(xdrs
, &objp
->ypresp_all_u
.val
)) {
326 xdr_ypresp_xfr(xdrs
, objp
)
333 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
336 if (!xdr_ypxfrstat(xdrs
, &objp
->xfrstat
)) {
344 xdr_ypmaplist(xdrs
, objp
)
351 if (!xdr_mapname(xdrs
, &objp
->map
)) {
354 if (!xdr_pointer(xdrs
, (char **)&objp
->next
, sizeof(ypmaplist
), (xdrproc_t
)xdr_ypmaplist
)) {
362 xdr_ypresp_maplist(xdrs
, objp
)
364 ypresp_maplist
*objp
;
369 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
372 if (!xdr_pointer(xdrs
, (char **)&objp
->maps
, sizeof(ypmaplist
), (xdrproc_t
)xdr_ypmaplist
)) {
379 xdr_yppush_status(xdrs
, objp
)
386 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
393 xdr_yppushresp_xfr(xdrs
, objp
)
395 yppushresp_xfr
*objp
;
400 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
403 if (!xdr_yppush_status(xdrs
, &objp
->status
)) {
411 xdr_ypbind_resptype(xdrs
, objp
)
413 ypbind_resptype
*objp
;
418 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
426 xdr_ypbind_binding(xdrs
, objp
)
428 ypbind_binding
*objp
;
434 if (!xdr_opaque(xdrs
, objp
->ypbind_binding_addr
, 4)) {
437 if (!xdr_opaque(xdrs
, objp
->ypbind_binding_port
, 2)) {
445 xdr_ypbind_resp(xdrs
, objp
)
452 if (!xdr_ypbind_resptype(xdrs
, &objp
->ypbind_status
)) {
455 switch (objp
->ypbind_status
) {
456 case YPBIND_FAIL_VAL
:
457 if (!xdr_u_int(xdrs
, &objp
->ypbind_resp_u
.ypbind_error
)) {
461 case YPBIND_SUCC_VAL
:
462 if (!xdr_ypbind_binding(xdrs
, &objp
->ypbind_resp_u
.ypbind_bindinfo
)) {
473 xdr_ypbind_setdom(xdrs
, objp
)
480 if (!xdr_domainname(xdrs
, &objp
->ypsetdom_domain
)) {
483 if (!xdr_ypbind_binding(xdrs
, &objp
->ypsetdom_binding
)) {
486 if (!xdr_u_int(xdrs
, &objp
->ypsetdom_vers
)) {