summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-02-26 02:22:53 +0000
committerwpaul <wpaul@FreeBSD.org>1996-02-26 02:22:53 +0000
commit8a5da4f21de5fa7e0d65f327945ec3cc50aa2bd2 (patch)
tree70431d08e7e9b761b0f10bbce8c42536dc1ca1a5 /include
parenteafacc8e847963309041e7bfbcefd38f7b6dbca3 (diff)
downloadFreeBSD-src-8a5da4f21de5fa7e0d65f327945ec3cc50aa2bd2.zip
FreeBSD-src-8a5da4f21de5fa7e0d65f327945ec3cc50aa2bd2.tar.gz
Add structure and procedure definitions for NIS v1. (This information
was reverse-engineered using the <rpcsvc/ypv1_prot.h> file supplied with SunOS 4.1.3 as a guide.)
Diffstat (limited to 'include')
-rw-r--r--include/rpcsvc/yp.x73
1 files changed, 71 insertions, 2 deletions
diff --git a/include/rpcsvc/yp.x b/include/rpcsvc/yp.x
index 4c44192..33dc948 100644
--- a/include/rpcsvc/yp.x
+++ b/include/rpcsvc/yp.x
@@ -34,7 +34,7 @@
#ifndef RPC_HDR
%#ifndef lint
%/*static char sccsid[] = "from: @(#)yp.x 2.1 88/08/01 4.0 RPCSRC";*/
-%static char rcsid[] = "$Id: yp.x,v 1.3 1995/12/09 08:34:04 wpaul Exp $";
+%static char rcsid[] = "$Id: yp.x,v 1.3 1995/12/07 03:50:27 wpaul Exp wpaul $";
%#endif /* not lint */
#endif
@@ -223,11 +223,80 @@ struct ypbind_setdom {
unsigned ypsetdom_vers;
};
+
+/*
+ * NIS v1 support for backwards compatibility
+ */
+enum ypreqtype {
+ YPREQ_KEY = 1,
+ YPREQ_NOKEY = 2,
+ YPREQ_MAP_PARMS = 3
+};
+
+enum ypresptype {
+ YPRESP_VAL = 1,
+ YPRESP_KEY_VAL = 2,
+ YPRESP_MAP_PARMS = 3
+};
+
+union yprequest switch (ypreqtype yp_reqtype) {
+case YPREQ_KEY:
+ ypreq_key yp_req_keytype;
+case YPREQ_NOKEY:
+ ypreq_nokey yp_req_nokeytype;
+case YPREQ_MAP_PARMS:
+ ypmap_parms yp_req_map_parmstype;
+};
+
+union ypresponse switch (ypresptype yp_resptype) {
+case YPRESP_VAL:
+ ypresp_val yp_resp_valtype;
+case YPRESP_KEY_VAL:
+ ypresp_key_val yp_resp_key_valtype;
+case YPRESP_MAP_PARMS:
+ ypmap_parms yp_resp_map_parmstype;
+};
+
#if !defined(YPBIND_ONLY) && !defined(YPPUSH_ONLY)
/*
* YP access protocol
*/
program YPPROG {
+/*
+ * NIS v1 support for backwards compatibility
+ */
+ version YPOLDVERS {
+ void
+ YPOLDPROC_NULL(void) = 0;
+
+ bool
+ YPOLDPROC_DOMAIN(domainname) = 1;
+
+ bool
+ YPOLDPROC_DOMAIN_NONACK(domainname) = 2;
+
+ ypresponse
+ YPOLDPROC_MATCH(yprequest) = 3;
+
+ ypresponse
+ YPOLDPROC_FIRST(yprequest) = 4;
+
+ ypresponse
+ YPOLDPROC_NEXT(yprequest) = 5;
+
+ ypresponse
+ YPOLDPROC_POLL(yprequest) = 6;
+
+ ypresponse
+ YPOLDPROC_PUSH(yprequest) = 7;
+
+ ypresponse
+ YPOLDPROC_PULL(yprequest) = 8;
+
+ ypresponse
+ YPOLDPROC_GET(yprequest) = 9;
+ } = 1;
+
version YPVERS {
void
YPPROC_NULL(void) = 0;
@@ -282,7 +351,7 @@ program YPPUSH_XFRRESPPROG {
yppushresp_xfr
YPPUSHPROC_XFRRESP(void) = 1;
#else
- void
+ void
YPPUSHPROC_XFRRESP(yppushresp_xfr) = 1;
#endif
} = 1;
OpenPOWER on IntegriCloud