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)
This commit is contained in:
Marcelo Araujo 2016-03-04 03:10:08 +00:00
parent 619d20a133
commit 5707468385
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296377

View File

@ -216,6 +216,8 @@ yp_dispatch(struct svc_req *req, SVCXPRT *trans)
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 *trans)
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;