| 1 | /* |
| 2 | * Please do not edit this file. |
| 3 | * It was generated using rpcgen. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _YP_H_RPCGEN |
| 7 | #define	_YP_H_RPCGEN |
| 8 | |
| 9 | #include <rpc/rpc.h> |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | #define	YPMAXRECORD 16777216 |
| 16 | #define	YPMAXDOMAIN 64 |
| 17 | #define	YPMAXMAP 64 |
| 18 | #define	YPMAXPEER 64 |
| 19 | |
| 20 | enum ypstat { |
| 21 | 	YP_TRUE = 1, |
| 22 | 	YP_NOMORE = 2, |
| 23 | 	YP_FALSE = 0, |
| 24 | 	YP_NOMAP = -1, |
| 25 | 	YP_NODOM = -2, |
| 26 | 	YP_NOKEY = -3, |
| 27 | 	YP_BADOP = -4, |
| 28 | 	YP_BADDB = -5, |
| 29 | 	YP_YPERR = -6, |
| 30 | 	YP_BADARGS = -7, |
| 31 | 	YP_VERS = -8 |
| 32 | }; |
| 33 | typedef enum ypstat ypstat; |
| 34 | |
| 35 | enum ypxfrstat { |
| 36 | 	YPXFR_SUCC = 1, |
| 37 | 	YPXFR_AGE = 2, |
| 38 | 	YPXFR_NOMAP = -1, |
| 39 | 	YPXFR_NODOM = -2, |
| 40 | 	YPXFR_RSRC = -3, |
| 41 | 	YPXFR_RPC = -4, |
| 42 | 	YPXFR_MADDR = -5, |
| 43 | 	YPXFR_YPERR = -6, |
| 44 | 	YPXFR_BADARGS = -7, |
| 45 | 	YPXFR_DBM = -8, |
| 46 | 	YPXFR_FILE = -9, |
| 47 | 	YPXFR_SKEW = -10, |
| 48 | 	YPXFR_CLEAR = -11, |
| 49 | 	YPXFR_FORCE = -12, |
| 50 | 	YPXFR_XFRERR = -13, |
| 51 | 	YPXFR_REFUSED = -14 |
| 52 | }; |
| 53 | typedef enum ypxfrstat ypxfrstat; |
| 54 | |
| 55 | typedef char *domainname; |
| 56 | |
| 57 | typedef char *mapname; |
| 58 | |
| 59 | typedef char *peername; |
| 60 | |
| 61 | typedef struct { |
| 62 | 	u_int keydat_len; |
| 63 | 	char *keydat_val; |
| 64 | } keydat; |
| 65 | |
| 66 | typedef struct { |
| 67 | 	u_int valdat_len; |
| 68 | 	char *valdat_val; |
| 69 | } valdat; |
| 70 | |
| 71 | struct ypmap_parms { |
| 72 | 	domainname domain; |
| 73 | 	mapname map; |
| 74 | 	u_int ordernum; |
| 75 | 	peername peer; |
| 76 | }; |
| 77 | typedef struct ypmap_parms ypmap_parms; |
| 78 | |
| 79 | struct ypreq_key { |
| 80 | 	domainname domain; |
| 81 | 	mapname map; |
| 82 | 	keydat key; |
| 83 | }; |
| 84 | typedef struct ypreq_key ypreq_key; |
| 85 | |
| 86 | struct ypreq_nokey { |
| 87 | 	domainname domain; |
| 88 | 	mapname map; |
| 89 | }; |
| 90 | typedef struct ypreq_nokey ypreq_nokey; |
| 91 | |
| 92 | struct ypreq_xfr { |
| 93 | 	ypmap_parms map_parms; |
| 94 | 	u_int transid; |
| 95 | 	u_int prog; |
| 96 | 	u_int port; |
| 97 | }; |
| 98 | typedef struct ypreq_xfr ypreq_xfr; |
| 99 | |
| 100 | struct ypresp_val { |
| 101 | 	ypstat stat; |
| 102 | 	valdat val; |
| 103 | }; |
| 104 | typedef struct ypresp_val ypresp_val; |
| 105 | |
| 106 | struct ypresp_key_val { |
| 107 | 	ypstat stat; |
| 108 | 	valdat val; |
| 109 | 	keydat key; |
| 110 | }; |
| 111 | typedef struct ypresp_key_val ypresp_key_val; |
| 112 | |
| 113 | struct ypresp_master { |
| 114 | 	ypstat stat; |
| 115 | 	peername peer; |
| 116 | }; |
| 117 | typedef struct ypresp_master ypresp_master; |
| 118 | |
| 119 | struct ypresp_order { |
| 120 | 	ypstat stat; |
| 121 | 	u_int ordernum; |
| 122 | }; |
| 123 | typedef struct ypresp_order ypresp_order; |
| 124 | |
| 125 | struct ypresp_all { |
| 126 | 	bool_t more; |
| 127 | 	union { |
| 128 | 		ypresp_key_val val; |
| 129 | 	} ypresp_all_u; |
| 130 | }; |
| 131 | typedef struct ypresp_all ypresp_all; |
| 132 | |
| 133 | struct ypresp_xfr { |
| 134 | 	u_int transid; |
| 135 | 	ypxfrstat xfrstat; |
| 136 | }; |
| 137 | typedef struct ypresp_xfr ypresp_xfr; |
| 138 | |
| 139 | struct ypmaplist { |
| 140 | 	mapname map; |
| 141 | 	struct ypmaplist *next; |
| 142 | }; |
| 143 | typedef struct ypmaplist ypmaplist; |
| 144 | |
| 145 | struct ypresp_maplist { |
| 146 | 	ypstat stat; |
| 147 | 	ypmaplist *maps; |
| 148 | }; |
| 149 | typedef struct ypresp_maplist ypresp_maplist; |
| 150 | |
| 151 | enum yppush_status { |
| 152 | 	YPPUSH_SUCC = 1, |
| 153 | 	YPPUSH_AGE = 2, |
| 154 | 	YPPUSH_NOMAP = -1, |
| 155 | 	YPPUSH_NODOM = -2, |
| 156 | 	YPPUSH_RSRC = -3, |
| 157 | 	YPPUSH_RPC = -4, |
| 158 | 	YPPUSH_MADDR = -5, |
| 159 | 	YPPUSH_YPERR = -6, |
| 160 | 	YPPUSH_BADARGS = -7, |
| 161 | 	YPPUSH_DBM = -8, |
| 162 | 	YPPUSH_FILE = -9, |
| 163 | 	YPPUSH_SKEW = -10, |
| 164 | 	YPPUSH_CLEAR = -11, |
| 165 | 	YPPUSH_FORCE = -12, |
| 166 | 	YPPUSH_XFRERR = -13, |
| 167 | 	YPPUSH_REFUSED = -14 |
| 168 | }; |
| 169 | typedef enum yppush_status yppush_status; |
| 170 | |
| 171 | struct yppushresp_xfr { |
| 172 | 	u_int transid; |
| 173 | 	yppush_status status; |
| 174 | }; |
| 175 | typedef struct yppushresp_xfr yppushresp_xfr; |
| 176 | |
| 177 | enum ypbind_resptype { |
| 178 | 	YPBIND_SUCC_VAL = 1, |
| 179 | 	YPBIND_FAIL_VAL = 2 |
| 180 | }; |
| 181 | typedef enum ypbind_resptype ypbind_resptype; |
| 182 | |
| 183 | struct ypbind_binding { |
| 184 | 	char ypbind_binding_addr[4]; |
| 185 | 	char ypbind_binding_port[2]; |
| 186 | }; |
| 187 | typedef struct ypbind_binding ypbind_binding; |
| 188 | |
| 189 | struct ypbind_resp { |
| 190 | 	ypbind_resptype ypbind_status; |
| 191 | 	union { |
| 192 | 		u_int ypbind_error; |
| 193 | 		ypbind_binding ypbind_bindinfo; |
| 194 | 	} ypbind_resp_u; |
| 195 | }; |
| 196 | typedef struct ypbind_resp ypbind_resp; |
| 197 | #define	YPBIND_ERR_ERR 1 |
| 198 | #define	YPBIND_ERR_NOSERV 2 |
| 199 | #define	YPBIND_ERR_RESC 3 |
| 200 | |
| 201 | struct ypbind_setdom { |
| 202 | 	domainname ypsetdom_domain; |
| 203 | 	ypbind_binding ypsetdom_binding; |
| 204 | 	u_int ypsetdom_vers; |
| 205 | }; |
| 206 | typedef struct ypbind_setdom ypbind_setdom; |
| 207 | |
| 208 | enum ypreqtype { |
| 209 | 	YPREQ_KEY = 1, |
| 210 | 	YPREQ_NOKEY = 2, |
| 211 | 	YPREQ_MAP_PARMS = 3 |
| 212 | }; |
| 213 | typedef enum ypreqtype ypreqtype; |
| 214 | |
| 215 | enum ypresptype { |
| 216 | 	YPRESP_VAL = 1, |
| 217 | 	YPRESP_KEY_VAL = 2, |
| 218 | 	YPRESP_MAP_PARMS = 3 |
| 219 | }; |
| 220 | typedef enum ypresptype ypresptype; |
| 221 | |
| 222 | struct yprequest { |
| 223 | 	ypreqtype yp_reqtype; |
| 224 | 	union { |
| 225 | 		ypreq_key yp_req_keytype; |
| 226 | 		ypreq_nokey yp_req_nokeytype; |
| 227 | 		ypmap_parms yp_req_map_parmstype; |
| 228 | 	} yprequest_u; |
| 229 | }; |
| 230 | typedef struct yprequest yprequest; |
| 231 | |
| 232 | struct ypresponse { |
| 233 | 	ypresptype yp_resptype; |
| 234 | 	union { |
| 235 | 		ypresp_val yp_resp_valtype; |
| 236 | 		ypresp_key_val yp_resp_key_valtype; |
| 237 | 		ypmap_parms yp_resp_map_parmstype; |
| 238 | 	} ypresponse_u; |
| 239 | }; |
| 240 | typedef struct ypresponse ypresponse; |
| 241 | |
| 242 | #define	YPPROG ((unsigned long)(100004)) |
| 243 | #define	YPOLDVERS ((unsigned long)(1)) |
| 244 | |
| 245 | extern void ypprog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 246 | #define	YPOLDPROC_NULL ((unsigned long)(0)) |
| 247 | extern void * ypoldproc_null_1(void *, CLIENT *); |
| 248 | extern void * ypoldproc_null_1_svc(void *, struct svc_req *); |
| 249 | #define	YPOLDPROC_DOMAIN ((unsigned long)(1)) |
| 250 | extern bool_t * ypoldproc_domain_1(domainname *, CLIENT *); |
| 251 | extern bool_t * ypoldproc_domain_1_svc(domainname *, struct svc_req *); |
| 252 | #define	YPOLDPROC_DOMAIN_NONACK ((unsigned long)(2)) |
| 253 | extern bool_t * ypoldproc_domain_nonack_1(domainname *, CLIENT *); |
| 254 | extern bool_t * ypoldproc_domain_nonack_1_svc(domainname *, struct svc_req *); |
| 255 | #define	YPOLDPROC_MATCH ((unsigned long)(3)) |
| 256 | extern ypresponse * ypoldproc_match_1(yprequest *, CLIENT *); |
| 257 | extern ypresponse * ypoldproc_match_1_svc(yprequest *, struct svc_req *); |
| 258 | #define	YPOLDPROC_FIRST ((unsigned long)(4)) |
| 259 | extern ypresponse * ypoldproc_first_1(yprequest *, CLIENT *); |
| 260 | extern ypresponse * ypoldproc_first_1_svc(yprequest *, struct svc_req *); |
| 261 | #define	YPOLDPROC_NEXT ((unsigned long)(5)) |
| 262 | extern ypresponse * ypoldproc_next_1(yprequest *, CLIENT *); |
| 263 | extern ypresponse * ypoldproc_next_1_svc(yprequest *, struct svc_req *); |
| 264 | #define	YPOLDPROC_POLL ((unsigned long)(6)) |
| 265 | extern ypresponse * ypoldproc_poll_1(yprequest *, CLIENT *); |
| 266 | extern ypresponse * ypoldproc_poll_1_svc(yprequest *, struct svc_req *); |
| 267 | #define	YPOLDPROC_PUSH ((unsigned long)(7)) |
| 268 | extern ypresponse * ypoldproc_push_1(yprequest *, CLIENT *); |
| 269 | extern ypresponse * ypoldproc_push_1_svc(yprequest *, struct svc_req *); |
| 270 | #define	YPOLDPROC_PULL ((unsigned long)(8)) |
| 271 | extern ypresponse * ypoldproc_pull_1(yprequest *, CLIENT *); |
| 272 | extern ypresponse * ypoldproc_pull_1_svc(yprequest *, struct svc_req *); |
| 273 | #define	YPOLDPROC_GET ((unsigned long)(9)) |
| 274 | extern ypresponse * ypoldproc_get_1(yprequest *, CLIENT *); |
| 275 | extern ypresponse * ypoldproc_get_1_svc(yprequest *, struct svc_req *); |
| 276 | extern int ypprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 277 | #define	YPVERS ((unsigned long)(2)) |
| 278 | |
| 279 | extern void ypprog_2(struct svc_req *rqstp, SVCXPRT *transp); |
| 280 | #define	YPPROC_NULL ((unsigned long)(0)) |
| 281 | extern void * ypproc_null_2(void *, CLIENT *); |
| 282 | extern void * ypproc_null_2_svc(void *, struct svc_req *); |
| 283 | #define	YPPROC_DOMAIN ((unsigned long)(1)) |
| 284 | extern bool_t * ypproc_domain_2(domainname *, CLIENT *); |
| 285 | extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *); |
| 286 | #define	YPPROC_DOMAIN_NONACK ((unsigned long)(2)) |
| 287 | extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *); |
| 288 | extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *); |
| 289 | #define	YPPROC_MATCH ((unsigned long)(3)) |
| 290 | extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *); |
| 291 | extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *); |
| 292 | #define	YPPROC_FIRST ((unsigned long)(4)) |
| 293 | extern ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *); |
| 294 | extern ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *); |
| 295 | #define	YPPROC_NEXT ((unsigned long)(5)) |
| 296 | extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *); |
| 297 | extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *); |
| 298 | #define	YPPROC_XFR ((unsigned long)(6)) |
| 299 | extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *); |
| 300 | extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *); |
| 301 | #define	YPPROC_CLEAR ((unsigned long)(7)) |
| 302 | extern void * ypproc_clear_2(void *, CLIENT *); |
| 303 | extern void * ypproc_clear_2_svc(void *, struct svc_req *); |
| 304 | #define	YPPROC_ALL ((unsigned long)(8)) |
| 305 | extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *); |
| 306 | extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *); |
| 307 | #define	YPPROC_MASTER ((unsigned long)(9)) |
| 308 | extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *); |
| 309 | extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *); |
| 310 | #define	YPPROC_ORDER ((unsigned long)(10)) |
| 311 | extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *); |
| 312 | extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *); |
| 313 | #define	YPPROC_MAPLIST ((unsigned long)(11)) |
| 314 | extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *); |
| 315 | extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *); |
| 316 | extern int ypprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 317 | |
| 318 | #define	YPPUSH_XFRRESPPROG ((unsigned long)(0x40000000)) |
| 319 | #define	YPPUSH_XFRRESPVERS ((unsigned long)(1)) |
| 320 | |
| 321 | extern void yppush_xfrrespprog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 322 | #define	YPPUSHPROC_NULL ((unsigned long)(0)) |
| 323 | extern void * yppushproc_null_1(void *, CLIENT *); |
| 324 | extern void * yppushproc_null_1_svc(void *, struct svc_req *); |
| 325 | #define	YPPUSHPROC_XFRRESP ((unsigned long)(1)) |
| 326 | extern void * yppushproc_xfrresp_1(yppushresp_xfr *, CLIENT *); |
| 327 | extern void * yppushproc_xfrresp_1_svc(yppushresp_xfr *, struct svc_req *); |
| 328 | extern int yppush_xfrrespprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 329 | |
| 330 | #define	YPBINDPROG ((unsigned long)(100007)) |
| 331 | #define	YPBINDVERS ((unsigned long)(2)) |
| 332 | |
| 333 | extern void ypbindprog_2(struct svc_req *rqstp, SVCXPRT *transp); |
| 334 | #define	YPBINDPROC_NULL ((unsigned long)(0)) |
| 335 | extern void * ypbindproc_null_2(void *, CLIENT *); |
| 336 | extern void * ypbindproc_null_2_svc(void *, struct svc_req *); |
| 337 | #define	YPBINDPROC_DOMAIN ((unsigned long)(1)) |
| 338 | extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *); |
| 339 | extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *); |
| 340 | #define	YPBINDPROC_SETDOM ((unsigned long)(2)) |
| 341 | extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *); |
| 342 | extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *); |
| 343 | extern int ypbindprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 344 | |
| 345 | /* the xdr functions */ |
| 346 | extern bool_t xdr_ypstat(XDR *, ypstat*); |
| 347 | extern bool_t xdr_ypxfrstat(XDR *, ypxfrstat*); |
| 348 | extern bool_t xdr_domainname(XDR *, domainname*); |
| 349 | extern bool_t xdr_mapname(XDR *, mapname*); |
| 350 | extern bool_t xdr_peername(XDR *, peername*); |
| 351 | extern bool_t xdr_keydat(XDR *, keydat*); |
| 352 | extern bool_t xdr_valdat(XDR *, valdat*); |
| 353 | extern bool_t xdr_ypmap_parms(XDR *, ypmap_parms*); |
| 354 | extern bool_t xdr_ypreq_key(XDR *, ypreq_key*); |
| 355 | extern bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*); |
| 356 | extern bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*); |
| 357 | extern bool_t xdr_ypresp_val(XDR *, ypresp_val*); |
| 358 | extern bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*); |
| 359 | extern bool_t xdr_ypresp_master(XDR *, ypresp_master*); |
| 360 | extern bool_t xdr_ypresp_order(XDR *, ypresp_order*); |
| 361 | extern bool_t xdr_ypresp_all(XDR *, ypresp_all*); |
| 362 | extern bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*); |
| 363 | extern bool_t xdr_ypmaplist(XDR *, ypmaplist*); |
| 364 | extern bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*); |
| 365 | extern bool_t xdr_yppush_status(XDR *, yppush_status*); |
| 366 | extern bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*); |
| 367 | extern bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*); |
| 368 | extern bool_t xdr_ypbind_binding(XDR *, ypbind_binding*); |
| 369 | extern bool_t xdr_ypbind_resp(XDR *, ypbind_resp*); |
| 370 | extern bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*); |
| 371 | extern bool_t xdr_ypreqtype(XDR *, ypreqtype*); |
| 372 | extern bool_t xdr_ypresptype(XDR *, ypresptype*); |
| 373 | extern bool_t xdr_yprequest(XDR *, yprequest*); |
| 374 | extern bool_t xdr_ypresponse(XDR *, ypresponse*); |
| 375 | |
| 376 | #ifdef __cplusplus |
| 377 | } |
| 378 | #endif |
| 379 | |
| 380 | #endif /* !_YP_H_RPCGEN */ |