Lines Matching refs:name
19 int FAST_FUNC INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) in INET_resolve() argument
31 if (strcmp(name, "default") == 0) { in INET_resolve()
36 if (inet_aton(name, &s_in->sin_addr)) { in INET_resolve()
41 dbg("gethostbyname(%s)", name); in INET_resolve()
42 hp = gethostbyname(name); in INET_resolve()
51 dbg("getnetbyname(%s)", name); in INET_resolve()
52 np = getnetbyname(name); in INET_resolve()
66 dbg("gethostbyname(%s)", name); in INET_resolve()
67 hp = gethostbyname(name); in INET_resolve()
87 char name[1]; in INET_rresolve() member
92 char *name; in INET_rresolve() local
118 return xstrdup(pn->name); in INET_rresolve()
123 name = NULL; in INET_rresolve()
126 name = xmalloc_sockaddr2host_noport((void*)s_in); in INET_rresolve()
134 name = xstrdup(np->n_name); in INET_rresolve()
137 if (!name) in INET_rresolve()
138 name = xmalloc_sockaddr2dotted_noport((void*)s_in); in INET_rresolve()
140 pn = xmalloc(sizeof(*pn) + strlen(name)); /* no '+ 1', it's already accounted for */ in INET_rresolve()
144 strcpy(pn->name, name); in INET_rresolve()
147 return name; in INET_rresolve()
152 int FAST_FUNC INET6_resolve(const char *name, struct sockaddr_in6 *sin6) in INET6_resolve() argument
159 s = getaddrinfo(name, NULL, &req, &ai); in INET6_resolve()
161 bb_error_msg("getaddrinfo: %s: %d", name, s); in INET6_resolve()