Lines Matching refs:lp
158 MonList *lp;
190 lp = (MonList *)malloc(sizeof(MonList));
191 if (!lp)
197 strncpy(lp->notifyHost, arg->mon_id.my_id.my_name, SM_MAXSTRLEN);
198 lp->notifyProg = arg->mon_id.my_id.my_prog;
199 lp->notifyVers = arg->mon_id.my_id.my_vers;
200 lp->notifyProc = arg->mon_id.my_id.my_proc;
201 memcpy(lp->notifyData, arg->priv, sizeof(lp->notifyData));
203 lp->next = hp->monList;
204 hp->monList = lp;
225 MonList *lp, *next;
229 lp = hp->monList;
230 while (lp)
232 if (!strncasecmp(idp->my_name, lp->notifyHost, SM_MAXSTRLEN)
233 && (idp->my_prog == lp->notifyProg) && (idp->my_proc == lp->notifyProc)
234 && (idp->my_vers == lp->notifyVers))
237 next = lp->next;
240 free(lp);
241 lp = next;
246 last = lp;
247 lp = lp->next;
387 MonList *lp;
401 lp = hp->monList;
402 if (!lp) return (&dummy); /* We know this host, but have no */
412 while (lp)
416 memcpy(tx_arg.priv, lp->notifyData, sizeof(tx_arg.priv));
417 cli = clnt_create(lp->notifyHost, lp->notifyProg, lp->notifyVers, "udp");
420 syslog(LOG_ERR, "Failed to contact host %s%s", lp->notifyHost,
425 if (clnt_call(cli, lp->notifyProc, (xdrproc_t)xdr_sm_status, &tx_arg,
429 lp->notifyHost);
433 lp = lp->next;