YPPROG
YPPROG, YPVERS, tv, &ysd->dom_socket, 65507, 65507);
clnt = clnttcp_create(&clnt_sin, YPPROG, YPVERS, &clnt_sock, 0, 0);
if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) {
remoteport = getrpcport(ypxfr_source_host, YPPROG, YPVERS, IPPROTO_UDP);
if ((stat = callrpc("localhost",YPPROG,YPVERS,YPPROC_CLEAR,
if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) {
if ((clnt = clnt_create(source,YPPROG,YPVERS,"udp")) == NULL) {
if ((clnt = clnt_create(server, YPPROG,YPVERS,"udp")) == NULL) {
client = yp_bind_host(host, YPPROG, YPVERS, 0, 1);
if (getrpcport(_localhost, YPPROG, YPVERS, IPPROTO_UDP) <= 0) {
case YPPROG:
if ((stat = callrpc("localhost", YPPROG,YPVERS, YPPROC_CLEAR,
sin.sin_port = htons(__pmap_getport(&sin, YPPROG,
clnt = clntudp_create(any, YPPROG, YPVERS, tv, &sock);
stat = clnt_broadcast(YPPROG, YPVERS, YPPROC_DOMAIN_NONACK,
YPPROG, YPVERS, interval, &rpcsock, RPCSMALLMSGSIZE,
(void)pmap_unset(YPPROG, YPVERS);
if (!svc_register(yp->yp_trans_udp, YPPROG, YPVERS,
if (!svc_register(yp->yp_trans_tcp, YPPROG, YPVERS,
client = clntudp_create(&rsrv_sin, YPPROG, YPVERS, tv, &rsrv_sock);
if ((clnt = clnt_create(job->server, YPPROG, YPVERS, "udp")) == NULL) {
if (rqstp->rq_prog != YPPASSWDPROG && rqstp->rq_prog != YPPROG) {
(rqstp->rq_prog == YPPROG &&
(void)svc_unreg(YPPROG, YPVERS);
(void)svc_unreg(YPPROG, YPOLDVERS);
if (!svc_reg(transp, YPPROG, YPOLDVERS, ypprog_1, NULL)) {
if (!svc_reg(transp, YPPROG, YPVERS, ypprog_2, NULL)) {
rpcb_set(YPPROG, YPOLDVERS, nconf, &svcaddr);
rpcb_set(YPPROG, YPVERS, nconf, &svcaddr);
port = getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP);