1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (c) 1999,2001 by Sun Microsystems, Inc. 24 * All rights reserved. 25 */ 26 /* 27 * Please do not edit this file. 28 * It was generated using rpcgen. 29 */ 30 31 #pragma ident "%Z%%M% %I% %E% SMI" 32 33 34 #include <rpc/rpc.h> 35 #include <rpcsvc/bootparam_prot.h> 36 37 /* LINTLIBRARY */ 38 39 bool_t 40 xdr_bp_machine_name_t(XDR *xdrs, bp_machine_name_t *objp) 41 { 42 if (!xdr_string(xdrs, objp, MAX_MACHINE_NAME)) { 43 return (FALSE); 44 } 45 return (TRUE); 46 } 47 48 bool_t 49 xdr_bp_path_t(XDR *xdrs, bp_path_t *objp) 50 { 51 if (!xdr_string(xdrs, objp, MAX_PATH_LEN)) { 52 return (FALSE); 53 } 54 return (TRUE); 55 } 56 57 bool_t 58 xdr_bp_fileid_t(XDR *xdrs, bp_fileid_t *objp) 59 { 60 if (!xdr_string(xdrs, objp, MAX_FILEID)) { 61 return (FALSE); 62 } 63 return (TRUE); 64 } 65 66 bool_t 67 xdr_ip_addr_t(XDR *xdrs, ip_addr_t *objp) 68 { 69 if (!xdr_char(xdrs, &objp->net)) { 70 return (FALSE); 71 } 72 if (!xdr_char(xdrs, &objp->host)) { 73 return (FALSE); 74 } 75 if (!xdr_char(xdrs, &objp->lh)) { 76 return (FALSE); 77 } 78 if (!xdr_char(xdrs, &objp->impno)) { 79 return (FALSE); 80 } 81 return (TRUE); 82 } 83 84 bool_t 85 xdr_bp_address(XDR *xdrs, bp_address *objp) 86 { 87 if (!xdr_int(xdrs, &objp->address_type)) { 88 return (FALSE); 89 } 90 switch (objp->address_type) { 91 case IP_ADDR_TYPE: 92 if (!xdr_ip_addr_t(xdrs, &objp->bp_address_u.ip_addr)) { 93 return (FALSE); 94 } 95 break; 96 default: 97 return (FALSE); 98 } 99 return (TRUE); 100 } 101 102 bool_t 103 xdr_bp_whoami_arg(XDR *xdrs, bp_whoami_arg *objp) 104 { 105 if (!xdr_bp_address(xdrs, &objp->client_address)) { 106 return (FALSE); 107 } 108 return (TRUE); 109 } 110 111 bool_t 112 xdr_bp_whoami_res(XDR *xdrs, bp_whoami_res *objp) 113 { 114 if (!xdr_bp_machine_name_t(xdrs, &objp->client_name)) { 115 return (FALSE); 116 } 117 if (!xdr_bp_machine_name_t(xdrs, &objp->domain_name)) { 118 return (FALSE); 119 } 120 if (!xdr_bp_address(xdrs, &objp->router_address)) { 121 return (FALSE); 122 } 123 return (TRUE); 124 } 125 126 bool_t 127 xdr_bp_getfile_arg(XDR *xdrs, bp_getfile_arg *objp) 128 { 129 if (!xdr_bp_machine_name_t(xdrs, &objp->client_name)) { 130 return (FALSE); 131 } 132 if (!xdr_bp_fileid_t(xdrs, &objp->file_id)) { 133 return (FALSE); 134 } 135 return (TRUE); 136 } 137 138 bool_t 139 xdr_bp_getfile_res(XDR *xdrs, bp_getfile_res *objp) 140 { 141 if (!xdr_bp_machine_name_t(xdrs, &objp->server_name)) { 142 return (FALSE); 143 } 144 if (!xdr_bp_address(xdrs, &objp->server_address)) { 145 return (FALSE); 146 } 147 if (!xdr_bp_path_t(xdrs, &objp->server_path)) { 148 return (FALSE); 149 } 150 return (TRUE); 151 } 152