8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / librpcsvc / common / bootparam_prot.h
blob011953a35f12f0e4c41982df56e84759f6ea4a1a
1 /*
2 * CDDL HEADER START
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.
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]
20 * CDDL HEADER END
22 * Copyright 1984 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #pragma ident "%Z%%M% %I% %E% SMI"
28 #include <rpc/types.h>
30 #include <rpc/types.h>
31 #include <sys/time.h>
32 #include <sys/errno.h>
33 #include <nfs/nfs.h>
34 #define MAX_MACHINE_NAME 255
35 #define MAX_PATH_LEN 1024
36 #define MAX_FILEID 32
37 #define IP_ADDR_TYPE 1
39 typedef char *bp_machine_name_t;
40 bool_t xdr_bp_machine_name_t();
42 typedef char *bp_path_t;
43 bool_t xdr_bp_path_t();
45 typedef char *bp_fileid_t;
46 bool_t xdr_bp_fileid_t();
48 struct ip_addr_t {
49 char net;
50 char host;
51 char lh;
52 char impno;
54 typedef struct ip_addr_t ip_addr_t;
55 bool_t xdr_ip_addr_t();
57 struct bp_address {
58 int address_type;
59 union {
60 ip_addr_t ip_addr;
61 } bp_address_u;
63 typedef struct bp_address bp_address;
64 bool_t xdr_bp_address();
66 struct bp_whoami_arg {
67 bp_address client_address;
69 typedef struct bp_whoami_arg bp_whoami_arg;
70 bool_t xdr_bp_whoami_arg();
72 struct bp_whoami_res {
73 bp_machine_name_t client_name;
74 bp_machine_name_t domain_name;
75 bp_address router_address;
77 typedef struct bp_whoami_res bp_whoami_res;
78 bool_t xdr_bp_whoami_res();
80 struct bp_getfile_arg {
81 bp_machine_name_t client_name;
82 bp_fileid_t file_id;
84 typedef struct bp_getfile_arg bp_getfile_arg;
85 bool_t xdr_bp_getfile_arg();
87 struct bp_getfile_res {
88 bp_machine_name_t server_name;
89 bp_address server_address;
90 bp_path_t server_path;
92 typedef struct bp_getfile_res bp_getfile_res;
93 bool_t xdr_bp_getfile_res();
95 #define BOOTPARAMPROG ((rpcprog_t)100026)
96 #define BOOTPARAMVERS ((rpcvers_t)1)
97 #define BOOTPARAMPROC_WHOAMI ((rpcproc_t)1)
98 extern bp_whoami_res *bootparamproc_whoami_1();
99 #define BOOTPARAMPROC_GETFILE ((rpcproc_t)2)
100 extern bp_getfile_res *bootparamproc_getfile_1();