Lines Matching refs:uaddr
23 * and destroyed. Two strings "netid" and "uaddr" are malloc'd
80 static int uaddr_to_sockaddr(char *uaddr, struct sockaddr_in *sin)
86 i = sscanf(uaddr, "%lu.%lu.%lu.%lu.%lu.%lu", &a[0], &a[1], &a[2],
115 free(eps[i].uaddr);
173 ep->uaddr = strdup(hname);
176 if (ep->uaddr == NULL || ep->family == NULL || ep->proto == NULL) {
188 ep->uaddr = strdup(hname);
191 if (ep->uaddr == NULL || ep->family == NULL || ep->proto == NULL) {
220 * Once through, *uaddr is set to the universal address of
222 * that uaddr goes with. On the second call, the netconfig stuff
223 * is skipped and the uaddr/netid pair are used to fetch the netconfig
231 * uaddr - known universal address
236 char **uaddr, struct sockaddr_in *netid)
241 char *useua = NULL; /* uaddr of selected xp */
266 if (*uaddr == NULL) {
295 useua = ep[tcp_ep].uaddr;
299 useua = ep[udp_ep].uaddr;
312 * Create a sockaddr from the uaddr.
314 if (*uaddr != NULL)
315 useua = *uaddr;
324 msg("unable to translate uaddr to sockaddr.");
378 msg("cannot convert timeservice uaddr to sockaddr.");
476 * note, don't free uaddr strings until after we've made a
480 if (*uaddr == NULL)
481 *uaddr = strdup(useua);