Lines Matching refs:req

103 static bool xdrypserv_ypall(XDR *xdrs, struct ypreq_nokey *req);
104 static int multihomed(struct ypreq_key req, struct ypresp_val *resp,
106 static int omultihomed(struct yprequest req, struct ypresponse *resp,
195 struct ypreq_key req; in ypmatch() local
200 memset(&req, 0, sizeof (req)); in ypmatch()
204 if (!svc_getargs(transp, (xdrproc_t)xdr_ypreq_key, (char *)&req)) { in ypmatch()
213 if ((fdb = ypset_current_map(req.map, req.domain, in ypmatch()
218 resp.valdat = dbm_fetch(fdb, req.keydat); in ypmatch()
233 if (req.keydat.dsize == 0 || in ypmatch()
234 req.keydat.dptr == NULL || in ypmatch()
235 req.keydat.dptr[0] == '\0' || in ypmatch()
236 strncmp(req.keydat.dptr, yp_secure, req.keydat.dsize) == 0 || in ypmatch()
237 strncmp(req.keydat.dptr, yp_interdomain, req.keydat.dsize) == 0) { in ypmatch()
243 if (multiflag == TRUE && multihomed(req, &resp, transp, fdb)) in ypmatch()
246 if (multihomed(req, &resp, transp, fdb)) in ypmatch()
276 rqstp->rq_xprt, &req, in ypmatch()
277 req.map) == TRUE) in ypmatch()
291 (char *)&req)) { in ypmatch()
303 struct ypreq_nokey req; in ypfirst() local
308 memset(&req, 0, sizeof (req)); in ypfirst()
313 (char *)&req)) { in ypfirst()
318 if ((fdb = ypset_current_map(req.map, req.domain, in ypfirst()
332 (char *)&req)) { in ypfirst()
343 struct ypreq_key req; in ypnext() local
348 memset(&req, 0, sizeof (req)); in ypnext()
351 if (!svc_getargs(transp, (xdrproc_t)xdr_ypreq_key, (char *)&req)) { in ypnext()
356 if ((fdb = ypset_current_map(req.map, req.domain, in ypnext()
359 ypfilter(fdb, &req.keydat, in ypnext()
371 (char *)&req)) { in ypnext()
511 struct ypreq_nokey req; in ypall() local
517 req.domain = req.map = NULL; in ypall()
519 memset((char *)&req, 0, sizeof (req)); in ypall()
523 (char *)&req)) { in ypall()
538 (char *)&req)) { in ypall()
549 if ((fdb = ypset_current_map(req.map, in ypall()
550 req.domain, &resp.status)) != NULL && in ypall()
553 req.map[0] = '-'; in ypall()
564 (char *)&req)) { in ypall()
570 (char *)&req)) { in ypall()
592 struct ypreq_nokey req; in ypmaster() local
598 memset((char *)&req, 0, sizeof (req)); in ypmaster()
604 (char *)&req)) { in ypmaster()
609 if ((fdb = ypset_current_map(req.map, in ypmaster()
610 req.domain, &resp.status)) != NULL && in ypmaster()
626 (char *)&req)) { in ypmaster()
637 struct ypreq_nokey req; in yporder() local
642 req.domain = req.map = NULL; in yporder()
646 memset((char *)&req, 0, sizeof (req)); in yporder()
650 (char *)&req)) { in yporder()
657 if ((fdb = ypset_current_map(req.map, in yporder()
658 req.domain, in yporder()
662 if (!ypget_map_order(req.map, req.domain, &resp.ordernum)) { in yporder()
675 (char *)&req)) { in yporder()
790 xdrypserv_ypall(XDR *xdrs, struct ypreq_nokey *req) in xdrypserv_ypall() argument
799 if ((fdb = ypset_current_map(req->map, req->domain, in xdrypserv_ypall()
845 multihomed(struct ypreq_key req, struct ypresp_val *resp, in multihomed() argument
854 if (strcmp(req.map, "hosts.byname") && in multihomed()
855 strcmp(req.map, "ipnodes.byname")) in multihomed()
859 if (strncmp(req.keydat.dptr, "YP_MULTI_", 9)) { in multihomed()
863 strncpy(name + 9, req.keydat.dptr, req.keydat.dsize); in multihomed()
864 tmpname.dsize = req.keydat.dsize + 9; in multihomed()
872 resp->valdat = dbm_fetch(fdb, req.keydat); in multihomed()
880 strncpy(name, req.keydat.dptr, req.keydat.dsize); in multihomed()
881 name[req.keydat.dsize] = NULL; in multihomed()
883 if (strcmp(req.map, "ipnodes.byname") == 0) { in multihomed()
983 struct yprequest req; in ypoldmatch() local
989 memset((void *) &req, 0, sizeof (req)); in ypoldmatch()
994 (caddr_t)&req)) { in ypoldmatch()
999 if (req.yp_reqtype != YPMATCH_REQTYPE) { in ypoldmatch()
1005 (((fdb = ypset_current_map(req.ypmatch_req_map, in ypoldmatch()
1006 req.ypmatch_req_domain, in ypoldmatch()
1015 req.ypmatch_req_keydat); in ypoldmatch()
1031 if (req.ypmatch_req_keysize == 0 || in ypoldmatch()
1032 req.ypmatch_req_keyptr == NULL || in ypoldmatch()
1033 req.ypmatch_req_keyptr[0] == '\0' || in ypoldmatch()
1034 strncmp(req.ypmatch_req_keyptr, "YP_SECURE", 9) == 0 || in ypoldmatch()
1035 strncmp(req.ypmatch_req_keyptr, "YP_INTERDOMAIN", 14) == 0) in ypoldmatch()
1041 if (multiflag == TRUE && omultihomed(req, &resp, transp, fdb)) in ypoldmatch()
1044 if (omultihomed(req, &resp, transp, fdb)) in ypoldmatch()
1064 if (req.yp_reqtype == YPREQ_KEY) { in ypoldmatch()
1065 nrq = req.yp_reqbody.yp_req_keytype; in ypoldmatch()
1085 (char *)&req)) { in ypoldmatch()
1094 struct yprequest req; in ypoldfirst() local
1099 memset((void *) &req, 0, sizeof (req)); in ypoldfirst()
1104 (caddr_t)&req)) { in ypoldfirst()
1109 if (req.yp_reqtype != YPFIRST_REQTYPE) { in ypoldfirst()
1115 ((fdb = ypset_current_map(req.ypfirst_req_map, in ypoldfirst()
1116 req.ypfirst_req_domain, in ypoldfirst()
1149 (caddr_t)&req)) { in ypoldfirst()
1158 struct yprequest req; in ypoldnext() local
1163 memset((void *) &req, 0, sizeof (req)); in ypoldnext()
1168 (caddr_t)&req)) { in ypoldnext()
1173 if (req.yp_reqtype != YPNEXT_REQTYPE) { in ypoldnext()
1179 ((fdb = ypset_current_map(req.ypnext_req_map, in ypoldnext()
1180 req.ypnext_req_domain, in ypoldnext()
1210 (caddr_t)&req)) { in ypoldnext()
1225 struct yprequest req; in ypoldpoll() local
1234 memset((void *) &req, 0, sizeof (req)); in ypoldpoll()
1239 (caddr_t)&req)) { in ypoldpoll()
1244 if (req.yp_reqtype == YPPOLL_REQTYPE) { in ypoldpoll()
1245 if (strcmp(req.yppoll_req_domain, "yp_private") == 0 || in ypoldpoll()
1246 strcmp(req.yppoll_req_map, "ypdomains") == 0 || in ypoldpoll()
1247 strcmp(req.yppoll_req_map, "ypmaps") == 0) { in ypoldpoll()
1252 domain = req.yppoll_req_domain; in ypoldpoll()
1253 map = req.yppoll_req_map; in ypoldpoll()
1254 } else if ((fdb = ypset_current_map(req.yppoll_req_map, in ypoldpoll()
1255 req.yppoll_req_domain, in ypoldpoll()
1257 domain = req.yppoll_req_domain; in ypoldpoll()
1258 map = req.yppoll_req_map; in ypoldpoll()
1265 map = req.yppoll_req_map; in ypoldpoll()
1269 domain = req.yppoll_req_domain; in ypoldpoll()
1288 (caddr_t)&req)) { in ypoldpoll()
1296 struct yprequest req; in ypoldpush() local
1302 memset((void *) &req, 0, sizeof (req)); in ypoldpush()
1306 (caddr_t)&req)) { in ypoldpush()
1311 if (((fdb = ypset_current_map(req.yppush_req_map, in ypoldpush()
1312 req.yppush_req_domain, in ypoldpush()
1324 if (execl(yppush_proc, "yppush", "-d", req.yppush_req_domain, in ypoldpush()
1325 req.yppush_req_map, NULL)) { in ypoldpush()
1339 (caddr_t)&req)) { in ypoldpush()
1347 struct yprequest req; in ypoldpull() local
1353 memset((void *) &req, 0, sizeof (req)); in ypoldpull()
1357 (caddr_t)&req)) { in ypoldpull()
1362 if (req.yp_reqtype == YPPULL_REQTYPE) { in ypoldpull()
1364 if (((fdb = ypset_current_map(req.yppull_req_map, in ypoldpull()
1365 req.yppull_req_domain, in ypoldpull()
1377 req.yppull_req_domain, in ypoldpull()
1378 req.yppull_req_map, NULL)) { in ypoldpull()
1387 (caddr_t)&req)) { in ypoldpull()
1395 struct yprequest req; in ypoldget() local
1401 memset((void *) &req, 0, sizeof (req)); in ypoldget()
1405 (caddr_t)&req)) { in ypoldget()
1414 if (req.yp_reqtype == YPGET_REQTYPE) { in ypoldget()
1416 if (((fdb = ypset_current_map(req.ypget_req_map, in ypoldget()
1417 req.ypget_req_domain, in ypoldget()
1431 req.ypget_req_domain, "-h", in ypoldget()
1432 req.ypget_req_owner, in ypoldget()
1433 req.ypget_req_map, NULL)) { in ypoldget()
1443 (caddr_t)&req)) { in ypoldget()
1449 omultihomed(struct yprequest req, in omultihomed() argument
1457 if (strcmp(req.ypmatch_req_map, "hosts.byname")) in omultihomed()
1460 if (strncmp(req.ypmatch_req_keyptr, "YP_MULTI_", 9)) { in omultihomed()
1464 strncpy(name + 9, req.ypmatch_req_keyptr, in omultihomed()
1465 req.ypmatch_req_keysize); in omultihomed()
1466 tmpname.dsize = req.ypmatch_req_keysize + 9; in omultihomed()
1471 dbm_fetch(fdb, req.ypmatch_req_keydat); in omultihomed()
1479 strncpy(name, req.ypmatch_req_keyptr, req.ypmatch_req_keysize); in omultihomed()
1480 name[req.ypmatch_req_keysize] = NULL; in omultihomed()