1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _BOOTPARAM_PROT_H_RPCGEN 7 #define _BOOTPARAM_PROT_H_RPCGEN 8 9 #include <rpc/rpc.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /* 16 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 17 * Use is subject to license terms. 18 */ 19 /* from bootparam_prot.x */ 20 21 #pragma ident "%Z%%M% %I% %E% SMI" 22 23 #define MAX_MACHINE_NAME 255 24 #define MAX_PATH_LEN 1024 25 #define MAX_FILEID 32 26 #define IP_ADDR_TYPE 1 27 28 typedef char *bp_machine_name_t; 29 30 typedef char *bp_path_t; 31 32 typedef char *bp_fileid_t; 33 34 struct ip_addr_t { 35 char net; 36 char host; 37 char lh; 38 char impno; 39 }; 40 typedef struct ip_addr_t ip_addr_t; 41 42 struct bp_address { 43 int address_type; 44 union { 45 ip_addr_t ip_addr; 46 } bp_address_u; 47 }; 48 typedef struct bp_address bp_address; 49 50 struct bp_whoami_arg { 51 bp_address client_address; 52 }; 53 typedef struct bp_whoami_arg bp_whoami_arg; 54 55 struct bp_whoami_res { 56 bp_machine_name_t client_name; 57 bp_machine_name_t domain_name; 58 bp_address router_address; 59 }; 60 typedef struct bp_whoami_res bp_whoami_res; 61 62 struct bp_getfile_arg { 63 bp_machine_name_t client_name; 64 bp_fileid_t file_id; 65 }; 66 typedef struct bp_getfile_arg bp_getfile_arg; 67 68 struct bp_getfile_res { 69 bp_machine_name_t server_name; 70 bp_address server_address; 71 bp_path_t server_path; 72 }; 73 typedef struct bp_getfile_res bp_getfile_res; 74 75 #define BOOTPARAMPROG 100026 76 #define BOOTPARAMVERS 1 77 78 #if defined(__STDC__) || defined(__cplusplus) 79 #define BOOTPARAMPROC_WHOAMI 1 80 extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *); 81 extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *); 82 #define BOOTPARAMPROC_GETFILE 2 83 extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *); 84 extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *); 85 extern int bootparamprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 86 87 #else /* K&R C */ 88 #define BOOTPARAMPROC_WHOAMI 1 89 extern bp_whoami_res * bootparamproc_whoami_1(); 90 extern bp_whoami_res * bootparamproc_whoami_1_svc(); 91 #define BOOTPARAMPROC_GETFILE 2 92 extern bp_getfile_res * bootparamproc_getfile_1(); 93 extern bp_getfile_res * bootparamproc_getfile_1_svc(); 94 extern int bootparamprog_1_freeresult(); 95 #endif /* K&R C */ 96 97 /* the xdr functions */ 98 99 #if defined(__STDC__) || defined(__cplusplus) 100 extern bool_t xdr_bp_machine_name_t(XDR *, bp_machine_name_t*); 101 extern bool_t xdr_bp_path_t(XDR *, bp_path_t*); 102 extern bool_t xdr_bp_fileid_t(XDR *, bp_fileid_t*); 103 extern bool_t xdr_ip_addr_t(XDR *, ip_addr_t*); 104 extern bool_t xdr_bp_address(XDR *, bp_address*); 105 extern bool_t xdr_bp_whoami_arg(XDR *, bp_whoami_arg*); 106 extern bool_t xdr_bp_whoami_res(XDR *, bp_whoami_res*); 107 extern bool_t xdr_bp_getfile_arg(XDR *, bp_getfile_arg*); 108 extern bool_t xdr_bp_getfile_res(XDR *, bp_getfile_res*); 109 110 #else /* K&R C */ 111 extern bool_t xdr_bp_machine_name_t(); 112 extern bool_t xdr_bp_path_t(); 113 extern bool_t xdr_bp_fileid_t(); 114 extern bool_t xdr_ip_addr_t(); 115 extern bool_t xdr_bp_address(); 116 extern bool_t xdr_bp_whoami_arg(); 117 extern bool_t xdr_bp_whoami_res(); 118 extern bool_t xdr_bp_getfile_arg(); 119 extern bool_t xdr_bp_getfile_res(); 120 121 #endif /* K&R C */ 122 123 #ifdef __cplusplus 124 } 125 #endif 126 127 #endif /* !_BOOTPARAM_PROT_H_RPCGEN */ 128