Lines Matching refs:req
104 static bool xdrypserv_ypall(XDR *xdrs, struct ypreq_nokey *req);
105 static int multihomed(struct ypreq_key req, struct ypresp_val *resp,
107 static int omultihomed(struct yprequest req, struct ypresponse *resp,
196 struct ypreq_key req; in ypmatch() local
201 memset(&req, 0, sizeof (req)); in ypmatch()
205 if (!svc_getargs(transp, (xdrproc_t)xdr_ypreq_key, (char *)&req)) { in ypmatch()
214 if ((fdb = ypset_current_map(req.map, req.domain, in ypmatch()
219 resp.valdat = dbm_fetch(fdb, req.keydat); in ypmatch()
234 if (req.keydat.dsize == 0 || in ypmatch()
235 req.keydat.dptr == NULL || in ypmatch()
236 req.keydat.dptr[0] == '\0' || in ypmatch()
237 strncmp(req.keydat.dptr, yp_secure, req.keydat.dsize) == 0 || in ypmatch()
238 strncmp(req.keydat.dptr, yp_interdomain, req.keydat.dsize) == 0) { in ypmatch()
244 if (multiflag == TRUE && multihomed(req, &resp, transp, fdb)) in ypmatch()
247 if (multihomed(req, &resp, transp, fdb)) in ypmatch()
277 rqstp->rq_xprt, &req, in ypmatch()
278 req.map) == TRUE) in ypmatch()
292 (char *)&req)) { in ypmatch()
304 struct ypreq_nokey req; in ypfirst() local
309 memset(&req, 0, sizeof (req)); in ypfirst()
314 (char *)&req)) { in ypfirst()
319 if ((fdb = ypset_current_map(req.map, req.domain, in ypfirst()
333 (char *)&req)) { in ypfirst()
344 struct ypreq_key req; in ypnext() local
349 memset(&req, 0, sizeof (req)); in ypnext()
352 if (!svc_getargs(transp, (xdrproc_t)xdr_ypreq_key, (char *)&req)) { in ypnext()
357 if ((fdb = ypset_current_map(req.map, req.domain, in ypnext()
360 ypfilter(fdb, &req.keydat, in ypnext()
372 (char *)&req)) { in ypnext()
512 struct ypreq_nokey req; in ypall() local
518 req.domain = req.map = NULL; in ypall()
520 memset((char *)&req, 0, sizeof (req)); in ypall()
524 (char *)&req)) { in ypall()
539 (char *)&req)) { in ypall()
550 if ((fdb = ypset_current_map(req.map, in ypall()
551 req.domain, &resp.status)) != NULL && in ypall()
554 req.map[0] = '-'; in ypall()
565 (char *)&req)) { in ypall()
571 (char *)&req)) { in ypall()
593 struct ypreq_nokey req; in ypmaster() local
599 memset((char *)&req, 0, sizeof (req)); in ypmaster()
605 (char *)&req)) { in ypmaster()
610 if ((fdb = ypset_current_map(req.map, in ypmaster()
611 req.domain, &resp.status)) != NULL && in ypmaster()
627 (char *)&req)) { in ypmaster()
638 struct ypreq_nokey req; in yporder() local
643 req.domain = req.map = NULL; in yporder()
647 memset((char *)&req, 0, sizeof (req)); in yporder()
651 (char *)&req)) { in yporder()
658 if ((fdb = ypset_current_map(req.map, in yporder()
659 req.domain, in yporder()
663 if (!ypget_map_order(req.map, req.domain, &resp.ordernum)) { in yporder()
676 (char *)&req)) { in yporder()
791 xdrypserv_ypall(XDR *xdrs, struct ypreq_nokey *req) in xdrypserv_ypall() argument
800 if ((fdb = ypset_current_map(req->map, req->domain, in xdrypserv_ypall()
846 multihomed(struct ypreq_key req, struct ypresp_val *resp, in multihomed() argument
855 if (strcmp(req.map, "hosts.byname") && in multihomed()
856 strcmp(req.map, "ipnodes.byname")) in multihomed()
860 if (strncmp(req.keydat.dptr, "YP_MULTI_", 9)) { in multihomed()
864 strncpy(name + 9, req.keydat.dptr, req.keydat.dsize); in multihomed()
865 tmpname.dsize = req.keydat.dsize + 9; in multihomed()
873 resp->valdat = dbm_fetch(fdb, req.keydat); in multihomed()
881 strncpy(name, req.keydat.dptr, req.keydat.dsize); in multihomed()
882 name[req.keydat.dsize] = NULL; in multihomed()
884 if (strcmp(req.map, "ipnodes.byname") == 0) { in multihomed()
984 struct yprequest req; in ypoldmatch() local
990 memset((void *) &req, 0, sizeof (req)); in ypoldmatch()
995 (caddr_t)&req)) { in ypoldmatch()
1000 if (req.yp_reqtype != YPMATCH_REQTYPE) { in ypoldmatch()
1006 (((fdb = ypset_current_map(req.ypmatch_req_map, in ypoldmatch()
1007 req.ypmatch_req_domain, in ypoldmatch()
1016 req.ypmatch_req_keydat); in ypoldmatch()
1032 if (req.ypmatch_req_keysize == 0 || in ypoldmatch()
1033 req.ypmatch_req_keyptr == NULL || in ypoldmatch()
1034 req.ypmatch_req_keyptr[0] == '\0' || in ypoldmatch()
1035 strncmp(req.ypmatch_req_keyptr, "YP_SECURE", 9) == 0 || in ypoldmatch()
1036 strncmp(req.ypmatch_req_keyptr, "YP_INTERDOMAIN", 14) == 0) in ypoldmatch()
1042 if (multiflag == TRUE && omultihomed(req, &resp, transp, fdb)) in ypoldmatch()
1045 if (omultihomed(req, &resp, transp, fdb)) in ypoldmatch()
1065 if (req.yp_reqtype == YPREQ_KEY) { in ypoldmatch()
1066 nrq = req.yp_reqbody.yp_req_keytype; in ypoldmatch()
1086 (char *)&req)) { in ypoldmatch()
1095 struct yprequest req; in ypoldfirst() local
1100 memset((void *) &req, 0, sizeof (req)); in ypoldfirst()
1105 (caddr_t)&req)) { in ypoldfirst()
1110 if (req.yp_reqtype != YPFIRST_REQTYPE) { in ypoldfirst()
1116 ((fdb = ypset_current_map(req.ypfirst_req_map, in ypoldfirst()
1117 req.ypfirst_req_domain, in ypoldfirst()
1150 (caddr_t)&req)) { in ypoldfirst()
1159 struct yprequest req; in ypoldnext() local
1164 memset((void *) &req, 0, sizeof (req)); in ypoldnext()
1169 (caddr_t)&req)) { in ypoldnext()
1174 if (req.yp_reqtype != YPNEXT_REQTYPE) { in ypoldnext()
1180 ((fdb = ypset_current_map(req.ypnext_req_map, in ypoldnext()
1181 req.ypnext_req_domain, in ypoldnext()
1211 (caddr_t)&req)) { in ypoldnext()
1226 struct yprequest req; in ypoldpoll() local
1235 memset((void *) &req, 0, sizeof (req)); in ypoldpoll()
1240 (caddr_t)&req)) { in ypoldpoll()
1245 if (req.yp_reqtype == YPPOLL_REQTYPE) { in ypoldpoll()
1246 if (strcmp(req.yppoll_req_domain, "yp_private") == 0 || in ypoldpoll()
1247 strcmp(req.yppoll_req_map, "ypdomains") == 0 || in ypoldpoll()
1248 strcmp(req.yppoll_req_map, "ypmaps") == 0) { in ypoldpoll()
1253 domain = req.yppoll_req_domain; in ypoldpoll()
1254 map = req.yppoll_req_map; in ypoldpoll()
1255 } else if ((fdb = ypset_current_map(req.yppoll_req_map, in ypoldpoll()
1256 req.yppoll_req_domain, in ypoldpoll()
1258 domain = req.yppoll_req_domain; in ypoldpoll()
1259 map = req.yppoll_req_map; in ypoldpoll()
1266 map = req.yppoll_req_map; in ypoldpoll()
1270 domain = req.yppoll_req_domain; in ypoldpoll()
1289 (caddr_t)&req)) { in ypoldpoll()
1297 struct yprequest req; in ypoldpush() local
1303 memset((void *) &req, 0, sizeof (req)); in ypoldpush()
1307 (caddr_t)&req)) { in ypoldpush()
1312 if (((fdb = ypset_current_map(req.yppush_req_map, in ypoldpush()
1313 req.yppush_req_domain, in ypoldpush()
1325 if (execl(yppush_proc, "yppush", "-d", req.yppush_req_domain, in ypoldpush()
1326 req.yppush_req_map, NULL)) { in ypoldpush()
1340 (caddr_t)&req)) { in ypoldpush()
1348 struct yprequest req; in ypoldpull() local
1354 memset((void *) &req, 0, sizeof (req)); in ypoldpull()
1358 (caddr_t)&req)) { in ypoldpull()
1363 if (req.yp_reqtype == YPPULL_REQTYPE) { in ypoldpull()
1365 if (((fdb = ypset_current_map(req.yppull_req_map, in ypoldpull()
1366 req.yppull_req_domain, in ypoldpull()
1378 req.yppull_req_domain, in ypoldpull()
1379 req.yppull_req_map, NULL)) { in ypoldpull()
1388 (caddr_t)&req)) { in ypoldpull()
1396 struct yprequest req; in ypoldget() local
1402 memset((void *) &req, 0, sizeof (req)); in ypoldget()
1406 (caddr_t)&req)) { in ypoldget()
1415 if (req.yp_reqtype == YPGET_REQTYPE) { in ypoldget()
1417 if (((fdb = ypset_current_map(req.ypget_req_map, in ypoldget()
1418 req.ypget_req_domain, in ypoldget()
1432 req.ypget_req_domain, "-h", in ypoldget()
1433 req.ypget_req_owner, in ypoldget()
1434 req.ypget_req_map, NULL)) { in ypoldget()
1444 (caddr_t)&req)) { in ypoldget()
1450 omultihomed(struct yprequest req, in omultihomed() argument
1458 if (strcmp(req.ypmatch_req_map, "hosts.byname")) in omultihomed()
1461 if (strncmp(req.ypmatch_req_keyptr, "YP_MULTI_", 9)) { in omultihomed()
1465 strncpy(name + 9, req.ypmatch_req_keyptr, in omultihomed()
1466 req.ypmatch_req_keysize); in omultihomed()
1467 tmpname.dsize = req.ypmatch_req_keysize + 9; in omultihomed()
1472 dbm_fetch(fdb, req.ypmatch_req_keydat); in omultihomed()
1480 strncpy(name, req.ypmatch_req_keyptr, req.ypmatch_req_keysize); in omultihomed()
1481 name[req.ypmatch_req_keysize] = NULL; in omultihomed()