Lines Matching defs:uaddr
25 * and destroyed. Two strings "netid" and "uaddr" are malloc'd
85 static int uaddr_to_sockaddr(char *uaddr, struct sockaddr_in *sin)
91 i = sscanf(uaddr, "%lu.%lu.%lu.%lu.%lu.%lu", &a[0], &a[1], &a[2],
120 free(eps[i].uaddr);
178 ep->uaddr = strdup(hname);
181 if (ep->uaddr == NULL || ep->family == NULL || ep->proto == NULL) {
193 ep->uaddr = strdup(hname);
196 if (ep->uaddr == NULL || ep->family == NULL || ep->proto == NULL) {
225 * Once through, *uaddr is set to the universal address of
227 * that uaddr goes with. On the second call, the netconfig stuff
228 * is skipped and the uaddr/netid pair are used to fetch the netconfig
236 * uaddr - known universal address
241 char **uaddr, struct sockaddr_in *netid)
246 char *useua = NULL; /* uaddr of selected xp */
271 if (*uaddr == NULL) {
300 useua = ep[tcp_ep].uaddr;
304 useua = ep[udp_ep].uaddr;
317 * Create a sockaddr from the uaddr.
319 if (*uaddr != NULL)
320 useua = *uaddr;
329 msg("unable to translate uaddr to sockaddr.");
383 msg("cannot convert timeservice uaddr to sockaddr.");
481 * note, don't free uaddr strings until after we've made a
485 if (*uaddr == NULL)
486 *uaddr = strdup(useua);