File indexing completed on 2025-01-18 10:13:02
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 "/var/run/rpcbind.sock"
0480
0481 #else
0482 #ifdef __cplusplus
0483 extern "C" {
0484 #endif
0485
0486
0487
0488
0489 struct rpcb {
0490 rpcprog_t r_prog;
0491 rpcvers_t r_vers;
0492 char *r_netid;
0493 char *r_addr;
0494 char *r_owner;
0495 };
0496 typedef struct rpcb RPCB;
0497
0498
0499
0500
0501 struct rpcblist {
0502 RPCB rpcb_map;
0503 struct rpcblist *rpcb_next;
0504 };
0505 typedef struct rpcblist RPCBLIST;
0506 typedef struct rpcblist *rpcblist_ptr;
0507
0508
0509
0510
0511 struct rpcb_rmtcallargs {
0512 rpcprog_t prog;
0513 rpcvers_t vers;
0514 rpcproc_t proc;
0515 u_int32_t arglen;
0516 caddr_t args_ptr;
0517 xdrproc_t xdr_args;
0518 };
0519 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
0520
0521
0522
0523
0524 struct rpcb_rmtcallres {
0525 char *addr_ptr;
0526 u_int32_t resultslen;
0527 caddr_t results_ptr;
0528 xdrproc_t xdr_results;
0529 };
0530 typedef struct rpcb_rmtcallres rpcb_rmtcallres;
0531
0532 struct rpcb_entry {
0533 char *r_maddr;
0534 char *r_nc_netid;
0535 unsigned int r_nc_semantics;
0536 char *r_nc_protofmly;
0537 char *r_nc_proto;
0538 };
0539 typedef struct rpcb_entry rpcb_entry;
0540
0541
0542
0543
0544
0545 struct rpcb_entry_list {
0546 rpcb_entry rpcb_entry_map;
0547 struct rpcb_entry_list *rpcb_entry_next;
0548 };
0549 typedef struct rpcb_entry_list rpcb_entry_list;
0550
0551 typedef rpcb_entry_list *rpcb_entry_list_ptr;
0552
0553
0554
0555
0556
0557 #define rpcb_highproc_2 RPCBPROC_CALLIT
0558 #define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
0559 #define rpcb_highproc_4 RPCBPROC_GETSTAT
0560 #define RPCBSTAT_HIGHPROC 13
0561 #define RPCBVERS_STAT 3
0562 #define RPCBVERS_4_STAT 2
0563 #define RPCBVERS_3_STAT 1
0564 #define RPCBVERS_2_STAT 0
0565
0566
0567
0568 struct rpcbs_addrlist {
0569 rpcprog_t prog;
0570 rpcvers_t vers;
0571 int success;
0572 int failure;
0573 char *netid;
0574 struct rpcbs_addrlist *next;
0575 };
0576 typedef struct rpcbs_addrlist rpcbs_addrlist;
0577
0578
0579
0580 struct rpcbs_rmtcalllist {
0581 rpcprog_t prog;
0582 rpcvers_t vers;
0583 rpcproc_t proc;
0584 int success;
0585 int failure;
0586 int indirect;
0587 char *netid;
0588 struct rpcbs_rmtcalllist *next;
0589 };
0590 typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
0591
0592 typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
0593
0594 typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
0595
0596 typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
0597
0598 struct rpcb_stat {
0599 rpcbs_proc info;
0600 int setinfo;
0601 int unsetinfo;
0602 rpcbs_addrlist_ptr addrinfo;
0603 rpcbs_rmtcalllist_ptr rmtinfo;
0604 };
0605 typedef struct rpcb_stat rpcb_stat;
0606
0607
0608
0609
0610
0611
0612 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
0613
0614 #ifdef __cplusplus
0615 }
0616 #endif
0617
0618 #endif
0619
0620 #define RPCBPROG ((u_int32_t)100000)
0621 #define RPCBVERS ((u_int32_t)3)
0622
0623 #ifdef __cplusplus
0624 #define RPCBPROC_SET ((u_int32_t)1)
0625 extern "C" bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
0626 extern "C" bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
0627 #define RPCBPROC_UNSET ((u_int32_t)2)
0628 extern "C" bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
0629 extern "C" bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
0630 #define RPCBPROC_GETADDR ((u_int32_t)3)
0631 extern "C" char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
0632 extern "C" char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
0633 #define RPCBPROC_DUMP ((u_int32_t)4)
0634 extern "C" rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
0635 extern "C" rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
0636 #define RPCBPROC_CALLIT ((u_int32_t)5)
0637 extern "C" rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
0638 extern "C" rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
0639 #define RPCBPROC_GETTIME ((u_int32_t)6)
0640 extern "C" u_int * rpcbproc_gettime_3(void *, CLIENT *);
0641 extern "C" u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
0642 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0643 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
0644 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
0645 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0646 extern "C" char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
0647 extern "C" char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
0648
0649 #elif __STDC__
0650 #define RPCBPROC_SET ((u_int32_t)1)
0651 extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
0652 extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
0653 #define RPCBPROC_UNSET ((u_int32_t)2)
0654 extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
0655 extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
0656 #define RPCBPROC_GETADDR ((u_int32_t)3)
0657 extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
0658 extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
0659 #define RPCBPROC_DUMP ((u_int32_t)4)
0660 extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
0661 extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
0662 #define RPCBPROC_CALLIT ((u_int32_t)5)
0663 extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
0664 extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
0665 #define RPCBPROC_GETTIME ((u_int32_t)6)
0666 extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
0667 extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
0668 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0669 extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
0670 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
0671 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0672 extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
0673 extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
0674
0675 #else
0676 #define RPCBPROC_SET ((u_int32_t)1)
0677 extern bool_t * rpcbproc_set_3();
0678 extern bool_t * rpcbproc_set_3_svc();
0679 #define RPCBPROC_UNSET ((u_int32_t)2)
0680 extern bool_t * rpcbproc_unset_3();
0681 extern bool_t * rpcbproc_unset_3_svc();
0682 #define RPCBPROC_GETADDR ((u_int32_t)3)
0683 extern char ** rpcbproc_getaddr_3();
0684 extern char ** rpcbproc_getaddr_3_svc();
0685 #define RPCBPROC_DUMP ((u_int32_t)4)
0686 extern rpcblist_ptr * rpcbproc_dump_3();
0687 extern rpcblist_ptr * rpcbproc_dump_3_svc();
0688 #define RPCBPROC_CALLIT ((u_int32_t)5)
0689 extern rpcb_rmtcallres * rpcbproc_callit_3();
0690 extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
0691 #define RPCBPROC_GETTIME ((u_int32_t)6)
0692 extern u_int * rpcbproc_gettime_3();
0693 extern u_int * rpcbproc_gettime_3_svc();
0694 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
0695 extern struct netbuf * rpcbproc_uaddr2taddr_3();
0696 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
0697 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
0698 extern char ** rpcbproc_taddr2uaddr_3();
0699 extern char ** rpcbproc_taddr2uaddr_3_svc();
0700 #endif
0701 #define RPCBVERS4 ((u_int32_t)4)
0702
0703 #ifdef __cplusplus
0704 extern "C" bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
0705 extern "C" bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
0706 extern "C" bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
0707 extern "C" bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
0708 extern "C" char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
0709 extern "C" char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
0710 extern "C" rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
0711 extern "C" rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
0712 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0713 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
0714 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0715 extern "C" u_int * rpcbproc_gettime_4(void *, CLIENT *);
0716 extern "C" u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
0717 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
0718 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
0719 extern "C" char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
0720 extern "C" char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
0721 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0722 extern "C" char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
0723 extern "C" char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
0724 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0725 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
0726 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0727 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0728 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
0729 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
0730 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0731 extern "C" rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
0732 extern "C" rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
0733
0734 #elif __STDC__
0735 extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
0736 extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
0737 extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
0738 extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
0739 extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
0740 extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
0741 extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
0742 extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
0743 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0744 extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
0745 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0746 extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
0747 extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
0748 extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
0749 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
0750 extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
0751 extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
0752 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0753 extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
0754 extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
0755 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0756 extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
0757 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
0758 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0759 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
0760 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
0761 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0762 extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
0763 extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
0764
0765 #else
0766 extern bool_t * rpcbproc_set_4();
0767 extern bool_t * rpcbproc_set_4_svc();
0768 extern bool_t * rpcbproc_unset_4();
0769 extern bool_t * rpcbproc_unset_4_svc();
0770 extern char ** rpcbproc_getaddr_4();
0771 extern char ** rpcbproc_getaddr_4_svc();
0772 extern rpcblist_ptr * rpcbproc_dump_4();
0773 extern rpcblist_ptr * rpcbproc_dump_4_svc();
0774 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
0775 extern rpcb_rmtcallres * rpcbproc_bcast_4();
0776 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
0777 extern u_int * rpcbproc_gettime_4();
0778 extern u_int * rpcbproc_gettime_4_svc();
0779 extern struct netbuf * rpcbproc_uaddr2taddr_4();
0780 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
0781 extern char ** rpcbproc_taddr2uaddr_4();
0782 extern char ** rpcbproc_taddr2uaddr_4_svc();
0783 #define RPCBPROC_GETVERSADDR ((u_int32_t)9)
0784 extern char ** rpcbproc_getversaddr_4();
0785 extern char ** rpcbproc_getversaddr_4_svc();
0786 #define RPCBPROC_INDIRECT ((u_int32_t)10)
0787 extern rpcb_rmtcallres * rpcbproc_indirect_4();
0788 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
0789 #define RPCBPROC_GETADDRLIST ((u_int32_t)11)
0790 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
0791 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
0792 #define RPCBPROC_GETSTAT ((u_int32_t)12)
0793 extern rpcb_stat * rpcbproc_getstat_4();
0794 extern rpcb_stat * rpcbproc_getstat_4_svc();
0795 #endif
0796
0797 #endif