1/* 2 * Please do not edit this file too much. 3 * It was generated using rpcgen, and then hacked to fix compilation problems. 4 */ 5 6#ifndef _PORTMAP_H_RPCGEN 7#define _PORTMAP_H_RPCGEN 8 9// #include "rpc.h" 10 11#ifdef __cplusplus 12extern "C" { 13#endif 14 15#define PMAP_PORT 111 16 17struct mapping { 18 u_int prog; 19 u_int vers; 20 u_int prot; 21 u_int port; 22}; 23typedef struct mapping mapping; 24#define IPPROTO_TCP 6 25#define IPPROTO_UDP 17 26 27struct pmaplist { 28 mapping map; 29 struct pmaplist *next; 30}; 31typedef struct pmaplist pmaplist; 32 33struct call_args { 34 u_int prog; 35 u_int vers; 36 u_int proc; 37 struct { 38 u_int args_len; 39 char *args_val; 40 } args; 41}; 42typedef struct call_args call_args; 43 44struct call_result { 45 u_int port; 46 struct { 47 u_int res_len; 48 char *res_val; 49 } res; 50}; 51typedef struct call_result call_result; 52 53#define PMAP_PROG 100000 54#define PMAP_VERS 2 55 56#define PMAPPROC_NULL 0 57#define PMAPPROC_SET 1 58#define PMAPPROC_UNSET 2 59#define PMAPPROC_GETPORT 3 60#define PMAPPROC_DUMP 4 61#define PMAPPROC_CALLIT 5 62 63#if 0 64extern enum clnt_stat pmapproc_null_2(void *, void *, CLIENT *); 65extern enum clnt_stat pmapproc_set_2(mapping *, bool_t *, CLIENT *); 66extern enum clnt_stat pmapproc_unset_2(mapping *, bool_t *, CLIENT *); 67extern enum clnt_stat pmapproc_getport_2(mapping *, u_int *, CLIENT *); 68extern enum clnt_stat pmapproc_dump_2(void *, pmaplist *, CLIENT *); 69extern enum clnt_stat pmapproc_callit_2(call_args *, call_result *, CLIENT *); 70#endif 71 72/* the xdr functions */ 73extern bool_t xdr_mapping (XDR *, mapping*); 74extern bool_t xdr_pmaplist (XDR *, pmaplist*); 75extern bool_t xdr_call_args (XDR *, call_args*); 76extern bool_t xdr_call_result (XDR *, call_result*); 77 78#ifdef __cplusplus 79} 80#endif 81 82#endif /* !_PORTMAP_H_RPCGEN */ 83