summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-03-04 03:10:08 +0000
committeraraujo <araujo@FreeBSD.org>2016-03-04 03:10:08 +0000
commit5c77da40c3bc5139d0f06ece21c78115a1e5f58b (patch)
treed7b397ddce83afd09960d9eaae00bb686cf943cb /usr.sbin
parentfa3cdda2542d27ac605b5ebc2de9a56e8274c907 (diff)
downloadFreeBSD-src-5c77da40c3bc5139d0f06ece21c78115a1e5f58b.zip
FreeBSD-src-5c77da40c3bc5139d0f06ece21c78115a1e5f58b.tar.gz
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)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypldap/yp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c
index c5e8edd..0a1183b 100644
--- a/usr.sbin/ypldap/yp.c
+++ b/usr.sbin/ypldap/yp.c
@@ -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;
OpenPOWER on IntegriCloud