File indexing completed on 2026-08-10 09:37:15
0001
0002
0003
0004
0005
0006 #ifndef _RPCB_PROT_H_RPCGEN
0007 #define _RPCB_PROT_H_RPCGEN
0008
0009 #include <rpc/rpc.h>
0010
0011 #ifndef IXDR_GET_INT32
0012 #define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
0013 #endif
0014 #ifndef IXDR_PUT_INT32
0015 #define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
0016 #endif
0017 #ifndef IXDR_GET_U_INT32
0018 #define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
0019 #endif
0020 #ifndef IXDR_PUT_U_INT32
0021 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
0022 #endif
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 #ifndef _KERNEL
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140 struct rpcb {
0141 rpcprog_t r_prog;
0142 rpcvers_t r_vers;
0143 char *r_netid;
0144 char *r_addr;
0145 char *r_owner;
0146 };
0147 typedef struct rpcb rpcb;
0148 #ifdef __cplusplus
0149 extern "C" bool_t xdr_rpcb(XDR *, rpcb*);
0150 #elif __STDC__
0151 extern bool_t xdr_rpcb(XDR *, rpcb*);
0152 #else
0153 bool_t xdr_rpcb();
0154 #endif
0155
0156
0157 typedef rpcb RPCB;
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171 struct rp__list {
0172 rpcb rpcb_map;
0173 struct rp__list *rpcb_next;
0174 };
0175 typedef struct rp__list rp__list;
0176 #ifdef __cplusplus
0177 extern "C" bool_t xdr_rp__list(XDR *, rp__list*);
0178 #elif __STDC__
0179 extern bool_t xdr_rp__list(XDR *, rp__list*);
0180 #else
0181 bool_t xdr_rp__list();
0182 #endif
0183
0184
0185 typedef rp__list *rpcblist_ptr;
0186 #ifdef __cplusplus
0187 extern "C" bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
0188 #elif __STDC__
0189 extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
0190 #else
0191 bool_t xdr_rpcblist_ptr();
0192 #endif
0193
0194
0195 typedef struct rp__list rpcblist;
0196 typedef struct rp__list RPCBLIST;
0197
0198 #ifndef __cplusplus
0199 struct rpcblist {
0200 RPCB rpcb_map;
0201 struct rpcblist *rpcb_next;
0202 };
0203 #endif
0204
0205 #ifdef __cplusplus
0206 extern "C" {
0207 #endif
0208 extern bool_t xdr_rpcblist(XDR *, rpcblist**);
0209 #ifdef __cplusplus
0210 }
0211 #endif
0212
0213
0214
0215
0216
0217
0218 struct rpcb_rmtcallargs {
0219 rpcprog_t prog;
0220 rpcvers_t vers;
0221 rpcproc_t proc;
0222 struct {
0223 u_int args_len;
0224 char *args_val;
0225 } args;
0226 };
0227 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
0228 #ifdef __cplusplus
0229 extern "C" bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
0230 #elif __STDC__
0231 extern bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
0232 #else
0233 bool_t xdr_rpcb_rmtcallargs();
0234 #endif
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248 struct r_rpcb_rmtcallargs {
0249 rpcprog_t prog;
0250 rpcvers_t vers;
0251 rpcproc_t proc;
0252 struct {
0253 u_int args_len;
0254 char *args_val;
0255 } args;
0256 xdrproc_t xdr_args;
0257 };
0258
0259
0260
0261
0262
0263
0264 struct rpcb_rmtcallres {
0265 char *addr;
0266 struct {
0267 u_int results_len;
0268 char *results_val;
0269 } results;
0270 };
0271 typedef struct rpcb_rmtcallres rpcb_rmtcallres;
0272 #ifdef __cplusplus
0273 extern "C" bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
0274 #elif __STDC__
0275 extern bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
0276 #else
0277 bool_t xdr_rpcb_rmtcallres();
0278 #endif
0279
0280
0281
0282
0283
0284 struct r_rpcb_rmtcallres {
0285 char *addr;
0286 struct {
0287 u_int32_t results_len;
0288 char *results_val;
0289 } results;
0290 xdrproc_t xdr_res;
0291 };
0292
0293
0294
0295
0296
0297
0298
0299
0300 struct rpcb_entry {
0301 char *r_maddr;
0302 char *r_nc_netid;
0303 u_int r_nc_semantics;
0304 char *r_nc_protofmly;
0305 char *r_nc_proto;
0306 };
0307 typedef struct rpcb_entry rpcb_entry;
0308 #ifdef __cplusplus
0309 extern "C" bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
0310 #elif __STDC__
0311 extern bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
0312 #else
0313 bool_t xdr_rpcb_entry();
0314 #endif
0315
0316
0317
0318
0319
0320
0321 struct rpcb_entry_list {
0322 rpcb_entry rpcb_entry_map;
0323 struct rpcb_entry_list *rpcb_entry_next;
0324 };
0325 typedef struct rpcb_entry_list rpcb_entry_list;
0326 #ifdef __cplusplus
0327 extern "C" bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
0328 #elif __STDC__
0329 extern bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
0330 #else
0331 bool_t xdr_rpcb_entry_list();
0332 #endif
0333
0334
0335 typedef rpcb_entry_list *rpcb_entry_list_ptr;
0336 #ifdef __cplusplus
0337 extern "C" bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
0338 #elif __STDC__
0339 extern bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
0340 #else
0341 bool_t xdr_rpcb_entry_list_ptr();
0342 #endif
0343
0344
0345
0346
0347
0348
0349 #define rpcb_highproc_2 RPCBPROC_CALLIT
0350 #define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
0351 #define rpcb_highproc_4 RPCBPROC_GETSTAT
0352 #define RPCBSTAT_HIGHPROC 13
0353 #define RPCBVERS_STAT 3
0354 #define RPCBVERS_4_STAT 2
0355 #define RPCBVERS_3_STAT 1
0356 #define RPCBVERS_2_STAT 0
0357
0358
0359
0360 struct rpcbs_addrlist {
0361 rpcprog_t prog;
0362 rpcvers_t vers;
0363 int success;
0364 int failure;
0365 char *netid;
0366 struct rpcbs_addrlist *next;
0367 };
0368 typedef struct rpcbs_addrlist rpcbs_addrlist;
0369 #ifdef __cplusplus
0370 extern "C" bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
0371 #elif __STDC__
0372 extern bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
0373 #else
0374 bool_t xdr_rpcbs_addrlist();
0375 #endif
0376
0377
0378
0379
0380 struct rpcbs_rmtcalllist {
0381 rpcprog_t prog;
0382 rpcvers_t vers;
0383 rpcproc_t proc;
0384 int success;
0385 int failure;
0386 int indirect;
0387 char *netid;
0388 struct rpcbs_rmtcalllist *next;
0389 };
0390 typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
0391 #ifdef __cplusplus
0392 extern "C" bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
0393 #elif __STDC__
0394 extern bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
0395 #else
0396 bool_t xdr_rpcbs_rmtcalllist();
0397 #endif
0398
0399
0400 typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
0401 #ifdef __cplusplus
0402 extern "C" bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
0403 #elif __STDC__
0404 extern bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
0405 #else
0406 bool_t xdr_rpcbs_proc();
0407 #endif
0408
0409
0410 typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
0411 #ifdef __cplusplus
0412 extern "C" bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
0413 #elif __STDC__
0414 extern bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
0415 #else
0416 bool_t xdr_rpcbs_addrlist_ptr();
0417 #endif
0418
0419
0420 typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
0421 #ifdef __cplusplus
0422 extern "C" bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
0423 #elif __STDC__
0424 extern bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
0425 #else
0426 bool_t xdr_rpcbs_rmtcalllist_ptr();
0427 #endif
0428
0429
0430 struct rpcb_stat {
0431 rpcbs_proc info;
0432 int setinfo;
0433 int unsetinfo;
0434 rpcbs_addrlist_ptr addrinfo;
0435 rpcbs_rmtcalllist_ptr rmtinfo;
0436 };
0437 typedef struct rpcb_stat rpcb_stat;
0438 #ifdef __cplusplus
0439 extern "C" bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
0440 #elif __STDC__
0441 extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
0442 #else
0443 bool_t xdr_rpcb_stat();
0444 #endif
0445
0446
0447
0448
0449
0450
0451
0452 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
0453 #ifdef __cplusplus
0454 extern "C" bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
0455 #elif __STDC__
0456 extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
0457 #else
0458 bool_t xdr_rpcb_stat_byvers();
0459 #endif
0460
0461
0462
0463
0464
0465
0466
0467
0468 #ifdef __cplusplus
0469 extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
0470
0471 #else
0472 extern bool_t xdr_netbuf(XDR *, struct netbuf *);
0473
0474 #endif
0475
0476 #define RPCBVERS_3 RPCBVERS
0477 #define RPCBVERS_4 RPCBVERS4
0478
0479 #define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
0480 #define _PATH_RPCBINDSOCK_ABSTRACT "\0" _PATH_RPCBINDSOCK
0481
0482 #else
0483 #ifdef __cplusplus
0484 extern "C" {
0485 #endif
0486
0487
0488
0489
0490 struct rpcb {
0491 rpcprog_t r_prog;
0492 rpcvers_t r_vers;
0493 char *r_netid;
0494 char *r_addr;
0495 char *r_owner;
0496 };
0497 typedef struct rpcb RPCB;
0498
0499
0500
0501
0502 struct rpcblist {
0503 RPCB rpcb_map;
0504 struct rpcblist *rpcb_next;
0505 };
0506 typedef struct rpcblist RPCBLIST;
0507 typedef struct rpcblist *rpcblist_ptr;
0508
0509
0510
0511
0512 struct rpcb_rmtcallargs {
0513 rpcprog_t prog;
0514 rpcvers_t vers;
0515 rpcproc_t proc;
0516 u_int32_t arglen;
0517 caddr_t args_ptr;
0518 xdrproc_t xdr_args;
0519 };
0520 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
0521
0522
0523
0524
0525 struct rpcb_rmtcallres {
0526 char *addr_ptr;
0527 u_int32_t resultslen;
0528 caddr_t results_ptr;
0529 xdrproc_t xdr_results;
0530 };
0531 typedef struct rpcb_rmtcallres rpcb_rmtcallres;
0532
0533 struct rpcb_entry {
0534 char *r_maddr;
0535 char *r_nc_netid;
0536 unsigned int r_nc_semantics;
0537 char *r_nc_protofmly;
0538 char *r_nc_proto;
0539 };
0540 typedef struct rpcb_entry rpcb_entry;
0541
0542
0543
0544
0545
0546 struct rpcb_entry_list {
0547 rpcb_entry rpcb_entry_map;
0548 struct rpcb_entry_list *rpcb_entry_next;
0549 };
0550 typedef struct rpcb_entry_list rpcb_entry_list;
0551
0552 typedef rpcb_entry_list *rpcb_entry_list_ptr;
0553
0554
0555
0556
0557
0558 #define rpcb_highproc_2 RPCBPROC_CALLIT
0559 #define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
0560 #define rpcb_highproc_4 RPCBPROC_GETSTAT
0561 #define RPCBSTAT_HIGHPROC 13
0562 #define RPCBVERS_STAT 3
0563 #define RPCBVERS_4_STAT 2
0564 #define RPCBVERS_3_STAT 1
0565 #define RPCBVERS_2_STAT 0
0566
0567
0568
0569 struct rpcbs_addrlist {
0570 rpcprog_t prog;
0571 rpcvers_t vers;
0572 int success;
0573 int failure;
0574 char *netid;
0575 struct rpcbs_addrlist *next;
0576 };
0577 typedef struct rpcbs_addrlist rpcbs_addrlist;
0578
0579
0580
0581 struct rpcbs_rmtcalllist {
0582 rpcprog_t prog;
0583 rpcvers_t vers;
0584 rpcproc_t proc;
0585 int success;
0586 int failure;
0587 int indirect;
0588 char *netid;
0589 struct rpcbs_rmtcalllist *next;
0590 };
0591 typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
0592
0593 typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
0594
0595 typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
0596
0597 typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
0598
0599 struct rpcb_stat {
0600 rpcbs_proc info;
0601 int setinfo;
0602 int unsetinfo;
0603 rpcbs_addrlist_ptr addrinfo;
0604 rpcbs_rmtcalllist_ptr rmtinfo;
0605 };
0606 typedef struct rpcb_stat rpcb_stat;
0607
0608
0609
0610
0611
0612
0613 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
0614
0615 #ifdef __cplusplus
0616 }
0617 #endif
0618
0619 #endif
0620
0621 #define RPCBPROG ((u_int32_t)100000)
0622 #define RPCBVERS ((u_int32_t)3)
0623
0624 #ifdef __cplusplus
0625 #define RPCBPROC_SET ((u_int32_t)1)
0626 extern "C" bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
0627 extern "C" bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
0628 #define RPCBPROC_UNSET ((u_int32_t)2)
0629 extern "C" bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
0630 extern "C" bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
0631 #define RPCBPROC_GETADDR ((u_int32_t)3)
0632 extern "C" char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
0633 extern "C" char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
0634 #define RPCBPROC_DUMP ((u_int32_t)4)
0635 extern "C" rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
0636 extern "C" rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
0637 #define RPCBPROC_CALLIT ((u_int32_t)5)
0638 extern "C" rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
0639 extern "C" rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
0640 #define RPCBPROC_GETTIME ((u_int32_t)6)
0641 extern "C" u_int * rpcbproc_gettime_3(void *, CLIENT *);
0642 extern "C" u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
0643 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0644 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
0645 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
0646 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0647 extern "C" char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
0648 extern "C" char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
0649
0650 #elif __STDC__
0651 #define RPCBPROC_SET ((u_int32_t)1)
0652 extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
0653 extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
0654 #define RPCBPROC_UNSET ((u_int32_t)2)
0655 extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
0656 extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
0657 #define RPCBPROC_GETADDR ((u_int32_t)3)
0658 extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
0659 extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
0660 #define RPCBPROC_DUMP ((u_int32_t)4)
0661 extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
0662 extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
0663 #define RPCBPROC_CALLIT ((u_int32_t)5)
0664 extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
0665 extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
0666 #define RPCBPROC_GETTIME ((u_int32_t)6)
0667 extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
0668 extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
0669 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0670 extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
0671 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
0672 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0673 extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
0674 extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
0675
0676 #else
0677 #define RPCBPROC_SET ((u_int32_t)1)
0678 extern bool_t * rpcbproc_set_3();
0679 extern bool_t * rpcbproc_set_3_svc();
0680 #define RPCBPROC_UNSET ((u_int32_t)2)
0681 extern bool_t * rpcbproc_unset_3();
0682 extern bool_t * rpcbproc_unset_3_svc();
0683 #define RPCBPROC_GETADDR ((u_int32_t)3)
0684 extern char ** rpcbproc_getaddr_3();
0685 extern char ** rpcbproc_getaddr_3_svc();
0686 #define RPCBPROC_DUMP ((u_int32_t)4)
0687 extern rpcblist_ptr * rpcbproc_dump_3();
0688 extern rpcblist_ptr * rpcbproc_dump_3_svc();
0689 #define RPCBPROC_CALLIT ((u_int32_t)5)
0690 extern rpcb_rmtcallres * rpcbproc_callit_3();
0691 extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
0692 #define RPCBPROC_GETTIME ((u_int32_t)6)
0693 extern u_int * rpcbproc_gettime_3();
0694 extern u_int * rpcbproc_gettime_3_svc();
0695 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0696 extern struct netbuf * rpcbproc_uaddr2taddr_3();
0697 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
0698 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0699 extern char ** rpcbproc_taddr2uaddr_3();
0700 extern char ** rpcbproc_taddr2uaddr_3_svc();
0701 #endif
0702 #define RPCBVERS4 ((u_int32_t)4)
0703
0704 #ifdef __cplusplus
0705 extern "C" bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
0706 extern "C" bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
0707 extern "C" bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
0708 extern "C" bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
0709 extern "C" char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
0710 extern "C" char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
0711 extern "C" rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
0712 extern "C" rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
0713 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0714 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
0715 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0716 extern "C" u_int * rpcbproc_gettime_4(void *, CLIENT *);
0717 extern "C" u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
0718 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
0719 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
0720 extern "C" char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
0721 extern "C" char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
0722 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0723 extern "C" char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
0724 extern "C" char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
0725 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0726 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
0727 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0728 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0729 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
0730 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
0731 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0732 extern "C" rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
0733 extern "C" rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
0734
0735 #elif __STDC__
0736 extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
0737 extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
0738 extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
0739 extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
0740 extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
0741 extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
0742 extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
0743 extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
0744 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0745 extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
0746 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0747 extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
0748 extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
0749 extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
0750 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
0751 extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
0752 extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
0753 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0754 extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
0755 extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
0756 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0757 extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
0758 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0759 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0760 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
0761 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
0762 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0763 extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
0764 extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
0765
0766 #else
0767 extern bool_t * rpcbproc_set_4();
0768 extern bool_t * rpcbproc_set_4_svc();
0769 extern bool_t * rpcbproc_unset_4();
0770 extern bool_t * rpcbproc_unset_4_svc();
0771 extern char ** rpcbproc_getaddr_4();
0772 extern char ** rpcbproc_getaddr_4_svc();
0773 extern rpcblist_ptr * rpcbproc_dump_4();
0774 extern rpcblist_ptr * rpcbproc_dump_4_svc();
0775 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0776 extern rpcb_rmtcallres * rpcbproc_bcast_4();
0777 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
0778 extern u_int * rpcbproc_gettime_4();
0779 extern u_int * rpcbproc_gettime_4_svc();
0780 extern struct netbuf * rpcbproc_uaddr2taddr_4();
0781 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
0782 extern char ** rpcbproc_taddr2uaddr_4();
0783 extern char ** rpcbproc_taddr2uaddr_4_svc();
0784 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0785 extern char ** rpcbproc_getversaddr_4();
0786 extern char ** rpcbproc_getversaddr_4_svc();
0787 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0788 extern rpcb_rmtcallres * rpcbproc_indirect_4();
0789 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
0790 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0791 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
0792 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
0793 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0794 extern rpcb_stat * rpcbproc_getstat_4();
0795 extern rpcb_stat * rpcbproc_getstat_4_svc();
0796 #endif
0797
0798 #endif