master
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
12extern "C" {
13#endif
14
15#include <rpc/types.h>
16#include <sys/time.h>
17#include <sys/errno.h>
18#include <sys/param.h>
19#include <sys/syslimits.h>
20#define MAX_MACHINE_NAME 255
21#define MAX_PATH_LEN 1024
22#define MAX_FILEID 32
23#define IP_ADDR_TYPE 1
24
25typedef char *bp_machine_name_t;
26
27typedef char *bp_path_t;
28
29typedef char *bp_fileid_t;
30
31struct ip_addr_t {
32 char net;
33 char host;
34 char lh;
35 char impno;
36};
37typedef struct ip_addr_t ip_addr_t;
38
39struct bp_address {
40 int address_type;
41 union {
42 ip_addr_t ip_addr;
43 } bp_address_u;
44};
45typedef struct bp_address bp_address;
46
47struct bp_whoami_arg {
48 bp_address client_address;
49};
50typedef struct bp_whoami_arg bp_whoami_arg;
51
52struct bp_whoami_res {
53 bp_machine_name_t client_name;
54 bp_machine_name_t domain_name;
55 bp_address router_address;
56};
57typedef struct bp_whoami_res bp_whoami_res;
58
59struct bp_getfile_arg {
60 bp_machine_name_t client_name;
61 bp_fileid_t file_id;
62};
63typedef struct bp_getfile_arg bp_getfile_arg;
64
65struct bp_getfile_res {
66 bp_machine_name_t server_name;
67 bp_address server_address;
68 bp_path_t server_path;
69};
70typedef struct bp_getfile_res bp_getfile_res;
71
72#define BOOTPARAMPROG ((unsigned long)(100026))
73#define BOOTPARAMVERS ((unsigned long)(1))
74
75extern void bootparamprog_1(struct svc_req *rqstp, SVCXPRT *transp);
76#define BOOTPARAMPROC_WHOAMI ((unsigned long)(1))
77extern bp_whoami_res * bootparamproc_whoami_1(bp_whoami_arg *, CLIENT *);
78extern bp_whoami_res * bootparamproc_whoami_1_svc(bp_whoami_arg *, struct svc_req *);
79#define BOOTPARAMPROC_GETFILE ((unsigned long)(2))
80extern bp_getfile_res * bootparamproc_getfile_1(bp_getfile_arg *, CLIENT *);
81extern bp_getfile_res * bootparamproc_getfile_1_svc(bp_getfile_arg *, struct svc_req *);
82extern int bootparamprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
83
84/* the xdr functions */
85extern bool_t xdr_bp_machine_name_t(XDR *, bp_machine_name_t*);
86extern bool_t xdr_bp_path_t(XDR *, bp_path_t*);
87extern bool_t xdr_bp_fileid_t(XDR *, bp_fileid_t*);
88extern bool_t xdr_ip_addr_t(XDR *, ip_addr_t*);
89extern bool_t xdr_bp_address(XDR *, bp_address*);
90extern bool_t xdr_bp_whoami_arg(XDR *, bp_whoami_arg*);
91extern bool_t xdr_bp_whoami_res(XDR *, bp_whoami_res*);
92extern bool_t xdr_bp_getfile_arg(XDR *, bp_getfile_arg*);
93extern bool_t xdr_bp_getfile_res(XDR *, bp_getfile_res*);
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* !_BOOTPARAM_PROT_H_RPCGEN */