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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to