32 #ifndef _RPCSVC_YP_PROT_H_ 33 #define _RPCSVC_YP_PROT_H_ 77 #define YPPROG ((u_long)100004) 78 #define YPVERS ((u_long)2) 79 #define YPVERS_ORIG ((u_long)1) 80 #define YPMAXRECORD ((u_long)1024) 81 #define YPMAXDOMAIN ((u_long)64) 82 #define YPMAXMAP ((u_long)64) 83 #define YPMAXPEER ((u_long)256) 124 #define ypxfr_domain map_parms.domain 125 #define ypxfr_map map_parms.map 126 #define ypxfr_ordernum map_parms.ordernum 127 #define ypxfr_owner map_parms.owner 151 char ypml_name[YPMAXMAP + 1];
161 #define YPPROC_NULL ((u_long)0) 162 #define YPPROC_DOMAIN ((u_long)1) 163 #define YPPROC_DOMAIN_NONACK ((u_long)2) 164 #define YPPROC_MATCH ((u_long)3) 165 #define YPPROC_FIRST ((u_long)4) 166 #define YPPROC_NEXT ((u_long)5) 167 #define YPPROC_XFR ((u_long)6) 168 #define YPPROC_CLEAR ((u_long)7) 169 #define YPPROC_ALL ((u_long)8) 170 #define YPPROC_MASTER ((u_long)9) 171 #define YPPROC_ORDER ((u_long)10) 172 #define YPPROC_MAPLIST ((u_long)11) 175 #define YP_TRUE ((long)1) 176 #define YP_NOMORE ((long)2) 177 #define YP_FALSE ((long)0) 178 #define YP_NOMAP ((long)-1) 179 #define YP_NODOM ((long)-2) 180 #define YP_NOKEY ((long)-3) 181 #define YP_BADOP ((long)-4) 182 #define YP_BADDB ((long)-5) 183 #define YP_YPERR ((long)-6) 184 #define YP_BADARGS ((long)-7) 185 #define YP_VERS ((long)-8) 201 char dom_domain[YPMAXDOMAIN + 1];
202 struct sockaddr_in dom_server_addr;
203 u_short dom_server_port;
206 u_short dom_local_port;
224 #define YPBINDPROG ((u_long)100007) 225 #define YPBINDVERS ((u_long)2) 226 #define YPBINDVERS_ORIG ((u_long)1) 229 #define YPBINDPROC_NULL ((u_long)0) 230 #define YPBINDPROC_DOMAIN ((u_long)1) 231 #define YPBINDPROC_SETDOM ((u_long)2) 234 enum ypbind_resptype {
237 _YPBIND_RESPTYPE = 0xffffffff
242 struct in_addr ypbind_binding_addr;
243 u_short ypbind_binding_port;
247 enum ypbind_resptype ypbind_status;
255 #define YPBIND_ERR_ERR 1 256 #define YPBIND_ERR_NOSERV 2 257 #define YPBIND_ERR_RESC 3 263 char ypsetdom_domain[YPMAXDOMAIN + 1];
265 u_short ypsetdom_vers;
267 #define ypsetdom_addr ypsetdom_binding.ypbind_binding_addr 268 #define ypsetdom_port ypsetdom_binding.ypbind_binding_port 282 #define YPPUSHVERS ((u_long)1) 283 #define YPPUSHVERS_ORIG ((u_long)1) 286 #define YPPUSHPROC_NULL ((u_long)0) 287 #define YPPUSHPROC_XFRRESP ((u_long)1) 295 #define YPPUSH_SUCC ((long)1) 296 #define YPPUSH_AGE ((long)2) 297 #define YPPUSH_NOMAP ((long)-1) 298 #define YPPUSH_NODOM ((long)-2) 299 #define YPPUSH_RSRC ((long)-3) 300 #define YPPUSH_RPC ((long)-4) 301 #define YPPUSH_MADDR ((long)-5) 302 #define YPPUSH_YPERR ((long)-6) 303 #define YPPUSH_BADARGS ((long)-7) 304 #define YPPUSH_DBM ((long)-8) 305 #define YPPUSH_FILE ((long)-9) 306 #define YPPUSH_SKEW ((long)-10) 307 #define YPPUSH_CLEAR ((long)-11) 308 #define YPPUSH_FORCE ((long)-12) 309 #define YPPUSH_XFRERR ((long)-13) 310 #define YPPUSH_REFUSED ((long)-14) 314 bool_t xdr_datum (XDR *,
datum *);
315 bool_t xdr_ypreq_key (XDR *,
struct ypreq_key *);
316 bool_t xdr_ypreq_nokey (XDR *,
struct ypreq_nokey *);
317 bool_t xdr_ypreq_xfr (XDR *,
struct ypreq_xfr *);
318 bool_t xdr_ypresp_val (XDR *,
struct ypresp_val *);
320 bool_t xdr_ypbind_resp (XDR *,
struct ypbind_resp *);
322 bool_t xdr_yp_inaddr (XDR *,
struct inaddr *);
323 bool_t xdr_ypmap_parms (XDR *,
struct ypmap_parms *);
Definition: yp_prot.h:134
Definition: yp_prot.h:199
Definition: yp_prot.h:241
Definition: yp_prot.h:246
Definition: yp_prot.h:107
Definition: yp_prot.h:150
Definition: yp_prot.h:155
Definition: yp_prot.h:145
Definition: yp_prot.h:140
Definition: yp_prot.h:100
Definition: yp_prot.h:129
Definition: yp_prot.h:289
Definition: yp_prot.h:113
Definition: yp_prot.h:262
Definition: yp_prot.h:118