Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:02

0001 /*
0002  * Please do not edit this file.
0003  * It was generated using rpcgen.
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  * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $
0025  *
0026  * Copyright (c) 2009, Sun Microsystems, Inc.
0027  * All rights reserved.
0028  *
0029  * Redistribution and use in source and binary forms, with or without
0030  * modification, are permitted provided that the following conditions are met:
0031  * - Redistributions of source code must retain the above copyright notice,
0032  *   this list of conditions and the following disclaimer.
0033  * - Redistributions in binary form must reproduce the above copyright notice,
0034  *   this list of conditions and the following disclaimer in the documentation
0035  *   and/or other materials provided with the distribution.
0036  * - Neither the name of Sun Microsystems, Inc. nor the names of its
0037  *   contributors may be used to endorse or promote products derived
0038  *   from this software without specific prior written permission.
0039  *
0040  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0041  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0042  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0043  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
0044  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0045  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0046  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0047  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0048  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0049  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0050  * POSSIBILITY OF SUCH DAMAGE.
0051  */
0052 /*
0053  * Copyright (c) 1988 by Sun Microsystems, Inc.
0054  */
0055 /* from rpcb_prot.x */
0056 
0057 /* #pragma ident    "@(#)rpcb_prot.x    1.5 94/04/29 SMI" */
0058 
0059 #ifndef _KERNEL
0060 
0061 
0062 /*
0063  * The following procedures are supported by the protocol in version 3:
0064  *
0065  * RPCBPROC_NULL() returns ()
0066  *  takes nothing, returns nothing
0067  *
0068  * RPCBPROC_SET(rpcb) returns (bool_t)
0069  *  TRUE is success, FALSE is failure.  Registers the tuple
0070  *  [prog, vers, address, owner, netid].
0071  *  Finds out owner and netid information on its own.
0072  *
0073  * RPCBPROC_UNSET(rpcb) returns (bool_t)
0074  *  TRUE is success, FALSE is failure.  Un-registers tuple
0075  *  [prog, vers, netid].  addresses is ignored.
0076  *  If netid is NULL, unregister all.
0077  *
0078  * RPCBPROC_GETADDR(rpcb) returns (string).
0079  *  0 is failure.  Otherwise returns the universal address where the
0080  *  triple [prog, vers, netid] is registered.  Ignore address and owner.
0081  *
0082  * RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
0083  *  used to dump the entire rpcbind maps
0084  *
0085  * RPCBPROC_CALLIT(rpcb_rmtcallargs)
0086  *  RETURNS (rpcb_rmtcallres);
0087  *  Calls the procedure on the remote machine.  If it is not registered,
0088  *  this procedure is quiet; i.e. it does not return error information!!!
0089  *  This routine only passes null authentication parameters.
0090  *  It has no interface to xdr routines for RPCBPROC_CALLIT.
0091  *
0092  * RPCBPROC_GETTIME() returns (int).
0093  *  Gets the remote machines time
0094  *
0095  * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
0096  *  Returns the netbuf address from universal address.
0097  *
0098  * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
0099  *  Returns the universal address from netbuf address.
0100  *
0101  * END OF RPCBIND VERSION 3 PROCEDURES
0102  */
0103 /*
0104  * Except for RPCBPROC_CALLIT, the procedures above are carried over to
0105  * rpcbind version 4.  Those below are added or modified for version 4.
0106  * NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER
0107  * AS RPCBPROC_CALLIT.
0108  *
0109  * RPCBPROC_BCAST(rpcb_rmtcallargs)
0110  *  RETURNS (rpcb_rmtcallres);
0111  *  Calls the procedure on the remote machine.  If it is not registered,
0112  *  this procedure IS quiet; i.e. it DOES NOT return error information!!!
0113  *  This routine should be used for broadcasting and nothing else.
0114  *
0115  * RPCBPROC_GETVERSADDR(rpcb) returns (string).
0116  *  0 is failure.  Otherwise returns the universal address where the
0117  *  triple [prog, vers, netid] is registered.  Ignore address and owner.
0118  *  Same as RPCBPROC_GETADDR except that if the given version number
0119  *  is not available, the address is not returned.
0120  *
0121  * RPCBPROC_INDIRECT(rpcb_rmtcallargs)
0122  *  RETURNS (rpcb_rmtcallres);
0123  *  Calls the procedure on the remote machine.  If it is not registered,
0124  *  this procedure is NOT quiet; i.e. it DOES return error information!!!
0125  *  as any normal application would expect.
0126  *
0127  * RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr).
0128  *  Same as RPCBPROC_GETADDR except that it returns a list of all the
0129  *  addresses registered for the combination (prog, vers) (for all
0130  *  transports).
0131  *
0132  * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
0133  *  Returns the statistics about the kind of requests received by rpcbind.
0134  */
0135 
0136 /*
0137  * A mapping of (program, version, network ID) to address
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 /* Old Style C */ 
0153 bool_t xdr_rpcb();
0154 #endif /* Old Style C */ 
0155 
0156 
0157 typedef rpcb RPCB;
0158 
0159 
0160 /*
0161  * A list of mappings
0162  *
0163  * Below are two definitions for the rpcblist structure.  This is done because
0164  * xdr_rpcblist() is specified to take a struct rpcblist **, rather than a
0165  * struct rpcblist * that rpcgen would produce.  One version of the rpcblist
0166  * structure (actually called rp__list) is used with rpcgen, and the other is
0167  * defined only in the header file for compatibility with the specified
0168  * interface.
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 /* Old Style C */ 
0181 bool_t xdr_rp__list();
0182 #endif /* Old Style C */ 
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 /* Old Style C */ 
0191 bool_t xdr_rpcblist_ptr();
0192 #endif /* Old Style C */ 
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  * Arguments of remote calls
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 /* Old Style C */ 
0233 bool_t xdr_rpcb_rmtcallargs();
0234 #endif /* Old Style C */ 
0235 
0236 
0237 /*
0238  * Client-side only representation of rpcb_rmtcallargs structure.
0239  *
0240  * The routine that XDRs the rpcb_rmtcallargs structure must deal with the
0241  * opaque arguments in the "args" structure.  xdr_rpcb_rmtcallargs() needs to
0242  * be passed the XDR routine that knows the args' structure.  This routine
0243  * doesn't need to go over-the-wire (and it wouldn't make sense anyway) since
0244  * the application being called already knows the args structure.  So we use a
0245  * different "XDR" structure on the client side, r_rpcb_rmtcallargs, which
0246  * includes the args' XDR routine.
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; /* encodes args */
0257 };
0258 
0259 
0260 /*
0261  * Results of the remote call
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 /* Old Style C */ 
0277 bool_t xdr_rpcb_rmtcallres();
0278 #endif /* Old Style C */ 
0279 
0280 
0281 /*
0282  * Client-side only representation of rpcb_rmtcallres structure.
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; /* decodes results */
0291 };
0292 
0293 /*
0294  * rpcb_entry contains a merged address of a service on a particular
0295  * transport, plus associated netconfig information.  A list of rpcb_entrys
0296  * is returned by RPCBPROC_GETADDRLIST.  See netconfig.h for values used
0297  * in r_nc_* fields.
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 /* Old Style C */ 
0313 bool_t xdr_rpcb_entry();
0314 #endif /* Old Style C */ 
0315 
0316 
0317 /*
0318  * A list of addresses supported by a service.
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 /* Old Style C */ 
0331 bool_t xdr_rpcb_entry_list();
0332 #endif /* Old Style C */ 
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 /* Old Style C */ 
0341 bool_t xdr_rpcb_entry_list_ptr();
0342 #endif /* Old Style C */ 
0343 
0344 
0345 /*
0346  * rpcbind statistics
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 /* Link list of all the stats about getport and getaddr */
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 /* Old Style C */ 
0374 bool_t xdr_rpcbs_addrlist();
0375 #endif /* Old Style C */ 
0376 
0377 
0378 /* Link list of all the stats about rmtcall */
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 /* Old Style C */ 
0396 bool_t xdr_rpcbs_rmtcalllist();
0397 #endif /* Old Style C */ 
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 /* Old Style C */ 
0406 bool_t xdr_rpcbs_proc();
0407 #endif /* Old Style C */ 
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 /* Old Style C */ 
0416 bool_t xdr_rpcbs_addrlist_ptr();
0417 #endif /* Old Style C */ 
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 /* Old Style C */ 
0426 bool_t xdr_rpcbs_rmtcalllist_ptr();
0427 #endif /* Old Style C */ 
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 /* Old Style C */ 
0443 bool_t xdr_rpcb_stat();
0444 #endif /* Old Style C */ 
0445 
0446 
0447 /*
0448  * One rpcb_stat structure is returned for each version of rpcbind
0449  * being monitored.
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 /* Old Style C */ 
0458 bool_t xdr_rpcb_stat_byvers();
0459 #endif /* Old Style C */ 
0460 
0461 
0462 /*
0463  * We don't define netbuf in RPCL, since it would contain structure member
0464  * names that would conflict with the definition of struct netbuf in
0465  * <tiuser.h>.  Instead we merely declare the XDR routine xdr_netbuf() here,
0466  * and implement it ourselves in rpc/rpcb_prot.c.
0467  */
0468 #ifdef __cplusplus
0469 extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
0470 
0471 #else /* __STDC__ */
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 /* ndef _KERNEL */
0482 #ifdef __cplusplus
0483 extern "C" {
0484 #endif
0485 
0486 /*
0487  * A mapping of (program, version, network ID) to address
0488  */
0489 struct rpcb {
0490  rpcprog_t r_prog; /* program number */
0491  rpcvers_t r_vers; /* version number */
0492  char *r_netid; /* network id */
0493  char *r_addr; /* universal address */
0494  char *r_owner; /* owner of the mapping */
0495 };
0496 typedef struct rpcb RPCB;
0497 
0498 /*
0499  * A list of mappings
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  * Remote calls arguments
0510  */
0511 struct rpcb_rmtcallargs {
0512  rpcprog_t prog; /* program number */
0513  rpcvers_t vers; /* version number */
0514  rpcproc_t proc; /* procedure number */
0515  u_int32_t arglen; /* arg len */
0516  caddr_t args_ptr; /* argument */
0517  xdrproc_t xdr_args; /* XDR routine for argument */
0518 };
0519 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
0520 
0521 /*
0522  * Remote calls results
0523  */
0524 struct rpcb_rmtcallres {
0525  char *addr_ptr; /* remote universal address */
0526  u_int32_t resultslen; /* results length */
0527  caddr_t results_ptr; /* results */
0528  xdrproc_t xdr_results; /* XDR routine for result */
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  * A list of addresses supported by a service.
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  * rpcbind statistics
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 /* Link list of all the stats about getport and getaddr */
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 /* Link list of all the stats about rmtcall */
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  * One rpcb_stat structure is returned for each version of rpcbind
0609  * being monitored.
0610  */
0611 
0612 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
0613 
0614 #ifdef __cplusplus
0615 }
0616 #endif
0617 
0618 #endif /* ndef _KERNEL */
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 /* Old Style C */ 
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 /* Old Style C */ 
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 /* Old Style C */ 
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 /* Old Style C */ 
0796 
0797 #endif /* !_RPCB_PROT_H_RPCGEN */