Lines Matching refs:pdomb
174 struct dom_binding *pdomb = NULL;
180 for (pdomb = bound_domains; pdomb != NULL; pdomb = pdomb->dom_pnext) {
181 if (strcmp(domain, pdomb->dom_domain) == 0)
182 return (pdomb);
185 if ((pdomb = (struct dom_binding *) malloc(sizeof(struct dom_binding)))
192 pdomb->dom_server_addr.sin_family = sa->sin_family;
193 pdomb->dom_server_addr.sin_port = sa->sin_port;
194 pdomb->dom_server_addr.sin_addr.s_addr = sa->sin_addr.s_addr;
195 bzero(pdomb->dom_server_addr.sin_zero, 8);
196 pdomb->dom_server_port = sa->sin_port;
197 pdomb->dom_socket = RPC_ANYSOCK;
198 pdomb->dom_vers = dom_binding->dom_binding->ypbind_hi_vers;
200 pdomb->dom_client = dom_binding->dom_client;
202 (void) strcpy(pdomb->dom_domain, domain);/* Remember the domain name */
203 pdomb->dom_pnext = bound_domains; /* Link this to the list as */
204 bound_domains = pdomb; /* ... the head entry */
206 return (pdomb);
213 struct dom_binding *pdomb;
221 for (pdomb = bound_domains; pdomb != NULL;
222 ptrail = pdomb, pdomb = pdomb->dom_pnext) {
224 if (strcmp(domain, pdomb->dom_domain) == 0) {
225 if (pdomb == bound_domains)
226 bound_domains = pdomb->dom_pnext;
228 ptrail->dom_pnext = pdomb->dom_pnext;
229 free((char *) pdomb);