svn commit: r296377 - head/usr.sbin/ypldap

Marcelo Araujo araujo at FreeBSD.org
Fri Mar 4 03:10:10 UTC 2016


Author: araujo
Date: Fri Mar  4 03:10:08 2016
New Revision: 296377
URL: https://svnweb.freebsd.org/changeset/base/296377

Log:
  Set argument encode/result decode call backs for 'maplist' and 'all'.
  
  Note: Listing a map is still not fully implemented.
  
  Obtained from:	OpenBSD (r1.16, r1.17)

Modified:
  head/usr.sbin/ypldap/yp.c

Modified: head/usr.sbin/ypldap/yp.c
==============================================================================
--- head/usr.sbin/ypldap/yp.c	Fri Mar  4 02:14:32 2016	(r296376)
+++ head/usr.sbin/ypldap/yp.c	Fri Mar  4 03:10:08 2016	(r296377)
@@ -216,6 +216,8 @@ yp_dispatch(struct svc_req *req, SVCXPRT
 		return;
 	case YPPROC_ALL:
 		log_debug("ypproc_all");
+		xdr_argument = (xdrproc_t) xdr_ypreq_nokey;
+		xdr_result = (xdrproc_t) xdr_ypresp_all;
 		if (yp_check(req) == -1)
 			return;
 		cb = (void *)ypproc_all_2_svc;
@@ -236,6 +238,8 @@ yp_dispatch(struct svc_req *req, SVCXPRT
 		return;
 	case YPPROC_MAPLIST:
 		log_debug("ypproc_maplist");
+		xdr_argument = (xdrproc_t) xdr_domainname;
+		xdr_result = (xdrproc_t) xdr_ypresp_maplist;
 		if (yp_check(req) == -1)
 			return;
 		cb = (void *)ypproc_maplist_2_svc;


More information about the svn-src-head mailing list