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
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.
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]
23 * Copyright (C) 1984, Sun Microsystems, Inc.
26 #ifndef _RPC_BOOTPARAM_H
27 #define _RPC_BOOTPARAM_H
29 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <rpc/types.h>
34 #include <sys/errno.h>
42 #define MAX_MACHINE_NAME 255
43 #define MAX_PATH_LEN 1024
45 #define IP_ADDR_TYPE 1
47 typedef char *bp_machine_name_t
;
48 typedef char *bp_path_t
;
49 typedef char *bp_fileid_t
;
57 typedef struct ip_addr_t ip_addr_t
;
65 typedef struct bp_address bp_address
;
68 struct bp_whoami_arg
{
69 bp_address client_address
;
71 typedef struct bp_whoami_arg bp_whoami_arg
;
74 struct bp_whoami_res
{
75 bp_machine_name_t client_name
;
76 bp_machine_name_t domain_name
;
77 bp_address router_address
;
79 typedef struct bp_whoami_res bp_whoami_res
;
82 struct bp_getfile_arg
{
83 bp_machine_name_t client_name
;
86 typedef struct bp_getfile_arg bp_getfile_arg
;
89 struct bp_getfile_res
{
90 bp_machine_name_t server_name
;
91 bp_address server_address
;
92 bp_path_t server_path
;
94 typedef struct bp_getfile_res bp_getfile_res
;
97 #define BOOTPARAMPROG 100026
98 #define BOOTPARAMVERS 1
99 #define BOOTPARAMPROC_WHOAMI 1
100 #define BOOTPARAMPROC_GETFILE 2
102 bool_t
xdr_bp_machine_name_t();
103 bool_t
xdr_bp_path_t();
104 bool_t
xdr_bp_fileid_t();
105 bool_t
xdr_ip_addr_t();
106 bool_t
xdr_bp_address();
107 bool_t
xdr_bp_whoami_arg();
108 bool_t
xdr_bp_whoami_res();
109 bool_t
xdr_bp_getfile_arg();
110 bool_t
xdr_bp_getfile_res();
116 #endif /* !_RPC_BOOTPARAM_H */