]>
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 * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.0 (the 'License'). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
14 * The Original Code and all software distributed under the License are
15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
22 * @APPLE_LICENSE_HEADER_END@
25 * Please do not edit this file.
26 * It was generated using rpcgen.
31 static char rcsid
[] = "$OpenBSD: ypserv_xdr.c,v 1.3 1996/05/30 09:53:31 deraadt Exp $";
36 xdr_ypstat(xdrs
, objp
)
43 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
50 xdr_ypxfrstat(xdrs
, objp
)
57 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
65 xdr_domainname(xdrs
, objp
)
72 if (!xdr_string(xdrs
, objp
, YPMAXDOMAIN
)) {
80 xdr_mapname(xdrs
, objp
)
87 if (!xdr_string(xdrs
, objp
, YPMAXMAP
)) {
95 xdr_peername(xdrs
, objp
)
102 if (!xdr_string(xdrs
, objp
, YPMAXPEER
)) {
110 xdr_keydat(xdrs
, objp
)
117 if (!xdr_bytes(xdrs
, (char **)&objp
->keydat_val
, (u_int
*)&objp
->keydat_len
, YPMAXRECORD
)) {
125 xdr_valdat(xdrs
, objp
)
132 if (!xdr_bytes(xdrs
, (char **)&objp
->valdat_val
, (u_int
*)&objp
->valdat_len
, YPMAXRECORD
)) {
139 xdr_ypmap_parms(xdrs
, objp
)
146 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
149 if (!xdr_mapname(xdrs
, &objp
->map
)) {
152 if (!xdr_u_int(xdrs
, &objp
->ordernum
)) {
155 if (!xdr_peername(xdrs
, &objp
->peer
)) {
163 xdr_ypreq_key(xdrs
, objp
)
170 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
173 if (!xdr_mapname(xdrs
, &objp
->map
)) {
176 if (!xdr_keydat(xdrs
, &objp
->key
)) {
184 xdr_ypreq_nokey(xdrs
, objp
)
191 if (!xdr_domainname(xdrs
, &objp
->domain
)) {
194 if (!xdr_mapname(xdrs
, &objp
->map
)) {
201 xdr_ypreq_xfr(xdrs
, objp
)
208 if (!xdr_ypmap_parms(xdrs
, &objp
->map_parms
)) {
211 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
214 if (!xdr_u_int(xdrs
, &objp
->prog
)) {
217 if (!xdr_u_int(xdrs
, &objp
->port
)) {
225 xdr_ypresp_val(xdrs
, objp
)
232 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
235 if (!xdr_valdat(xdrs
, &objp
->val
)) {
243 xdr_ypresp_key_val(xdrs
, objp
)
245 ypresp_key_val
*objp
;
250 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
253 if (!xdr_valdat(xdrs
, &objp
->val
)) {
256 if (!xdr_keydat(xdrs
, &objp
->key
)) {
264 xdr_ypresp_master(xdrs
, objp
)
271 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
274 if (!xdr_peername(xdrs
, &objp
->peer
)) {
282 xdr_ypresp_order(xdrs
, objp
)
289 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
292 if (!xdr_u_int(xdrs
, &objp
->ordernum
)) {
300 xdr_ypresp_all(xdrs
, objp
)
307 if (!xdr_bool(xdrs
, &objp
->more
)) {
310 switch (objp
->more
) {
312 if (!xdr_ypresp_key_val(xdrs
, &objp
->ypresp_all_u
.val
)) {
325 xdr_ypresp_xfr(xdrs
, objp
)
332 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
335 if (!xdr_ypxfrstat(xdrs
, &objp
->xfrstat
)) {
343 xdr_ypmaplist(xdrs
, objp
)
350 if (!xdr_mapname(xdrs
, &objp
->map
)) {
353 if (!xdr_pointer(xdrs
, (char **)&objp
->next
, sizeof(ypmaplist
), (xdrproc_t
)xdr_ypmaplist
)) {
361 xdr_ypresp_maplist(xdrs
, objp
)
363 ypresp_maplist
*objp
;
368 if (!xdr_ypstat(xdrs
, &objp
->stat
)) {
371 if (!xdr_pointer(xdrs
, (char **)&objp
->maps
, sizeof(ypmaplist
), (xdrproc_t
)xdr_ypmaplist
)) {
378 xdr_yppush_status(xdrs
, objp
)
385 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
392 xdr_yppushresp_xfr(xdrs
, objp
)
394 yppushresp_xfr
*objp
;
399 if (!xdr_u_int(xdrs
, &objp
->transid
)) {
402 if (!xdr_yppush_status(xdrs
, &objp
->status
)) {
410 xdr_ypbind_resptype(xdrs
, objp
)
412 ypbind_resptype
*objp
;
417 if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
425 xdr_ypbind_binding(xdrs
, objp
)
427 ypbind_binding
*objp
;
433 if (!xdr_opaque(xdrs
, objp
->ypbind_binding_addr
, 4)) {
436 if (!xdr_opaque(xdrs
, objp
->ypbind_binding_port
, 2)) {
444 xdr_ypbind_resp(xdrs
, objp
)
451 if (!xdr_ypbind_resptype(xdrs
, &objp
->ypbind_status
)) {
454 switch (objp
->ypbind_status
) {
455 case YPBIND_FAIL_VAL
:
456 if (!xdr_u_int(xdrs
, &objp
->ypbind_resp_u
.ypbind_error
)) {
460 case YPBIND_SUCC_VAL
:
461 if (!xdr_ypbind_binding(xdrs
, &objp
->ypbind_resp_u
.ypbind_bindinfo
)) {
472 xdr_ypbind_setdom(xdrs
, objp
)
479 if (!xdr_domainname(xdrs
, &objp
->ypsetdom_domain
)) {
482 if (!xdr_ypbind_binding(xdrs
, &objp
->ypsetdom_binding
)) {
485 if (!xdr_u_int(xdrs
, &objp
->ypsetdom_vers
)) {