Date: Fri, 4 Mar 2016 03:10:08 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r296377 - head/usr.sbin/ypldap Message-ID: <201603040310.u243A80N091096@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603040310.u243A80N091096>