Lines Matching defs:ntp
78 struct netinfo *ntp;
84 for (ntp = nettab; ntp != NULL; ntp = ntp->next) {
85 if (ntp->status == MASTER)
86 masterup(ntp);
117 for (ntp = nettab; ntp; ntp = ntp->next) {
118 if (ntp->status == IGNORE
119 || ntp->status == NOMASTER) {
120 lookformaster(ntp);
121 if (ntp->status == MASTER) {
122 masterup(ntp);
126 if (ntp->status == MASTER
127 && --ntp->quit_count < 0)
128 ntp->quit_count = 0;
136 for (ntp = nettab; ntp != NULL; ntp = ntp->next) {
145 (struct sockaddr*)&ntp->dest_addr,
146 sizeof(ntp->dest_addr)) < 0) {
147 trace_sendto_err(ntp->dest_addr.sin_addr);
257 ntp = fromnet; /* (acksend() can leave fromnet=0 */
261 answer = acksend(&to, &ntp->dest_addr,
263 ntp, 0);
266 htp = addmach(answer->tsp_name,&from,ntp);
276 masterup(ntp);
564 addmach(char *name, struct sockaddr_in *addr, struct netinfo *ntp)
625 ret->ntp = ntp;
701 rmnetmachs(struct netinfo *ntp)
708 if (ntp == htp->ntp)