Home
last modified time | relevance | path

Searched refs:hostent (Results 1 – 25 of 120) sorted by relevance

12345

/external/c-ares/
Dares__get_hostent.c36 int ares__get_hostent(FILE *fp, int family, struct hostent **host) in ares__get_hostent()
43 struct hostent *hostent = NULL; in ares__get_hostent() local
169 hostent = malloc(sizeof(struct hostent)); in ares__get_hostent()
170 if (!hostent) in ares__get_hostent()
174 hostent->h_aliases = NULL; in ares__get_hostent()
175 hostent->h_addr_list = NULL; in ares__get_hostent()
178 hostent->h_name = strdup(txthost); in ares__get_hostent()
179 if (!hostent->h_name) in ares__get_hostent()
183 hostent->h_addr_list = malloc(2 * sizeof(char *)); in ares__get_hostent()
184 if (!hostent->h_addr_list) in ares__get_hostent()
[all …]
Dares_parse_ptr_reply.c48 int addrlen, int family, struct hostent **host) in ares_parse_ptr_reply()
55 struct hostent *hostent; in ares_parse_ptr_reply() local
175 hostent = malloc(sizeof(struct hostent)); in ares_parse_ptr_reply()
176 if (hostent) in ares_parse_ptr_reply()
178 hostent->h_addr_list = malloc(2 * sizeof(char *)); in ares_parse_ptr_reply()
179 if (hostent->h_addr_list) in ares_parse_ptr_reply()
181 hostent->h_addr_list[0] = malloc(addrlen); in ares_parse_ptr_reply()
182 if (hostent->h_addr_list[0]) in ares_parse_ptr_reply()
184 hostent->h_aliases = malloc((aliascnt+1) * sizeof (char *)); in ares_parse_ptr_reply()
185 if (hostent->h_aliases) in ares_parse_ptr_reply()
[all …]
Dares_parse_ns_reply.c51 struct hostent** host ) in ares_parse_ns_reply()
59 struct hostent *hostent; in ares_parse_ns_reply() local
158 hostent = malloc( sizeof( struct hostent ) ); in ares_parse_ns_reply()
159 if ( hostent ) in ares_parse_ns_reply()
161 hostent->h_addr_list = malloc( 1 * sizeof( char * ) ); in ares_parse_ns_reply()
162 if ( hostent->h_addr_list ) in ares_parse_ns_reply()
165 hostent->h_name = hostname; in ares_parse_ns_reply()
166 hostent->h_aliases = nameservers; in ares_parse_ns_reply()
167 hostent->h_addrtype = AF_INET; in ares_parse_ns_reply()
168 hostent->h_length = sizeof( struct in_addr ); in ares_parse_ns_reply()
[all …]
Dares_parse_aaaa_reply.c57 struct hostent **host, struct ares_addr6ttl *addrttls, in ares_parse_aaaa_reply()
68 struct hostent *hostent; in ares_parse_aaaa_reply() local
228 hostent = malloc(sizeof(struct hostent)); in ares_parse_aaaa_reply()
229 if (hostent) in ares_parse_aaaa_reply()
231 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
232 if (hostent->h_addr_list) in ares_parse_aaaa_reply()
235 hostent->h_name = hostname; in ares_parse_aaaa_reply()
236 hostent->h_aliases = aliases; in ares_parse_aaaa_reply()
237 hostent->h_addrtype = AF_INET6; in ares_parse_aaaa_reply()
238 hostent->h_length = sizeof(struct ares_in6_addr); in ares_parse_aaaa_reply()
[all …]
Dares_parse_a_reply.c55 struct hostent **host, in ares_parse_a_reply()
66 struct hostent *hostent; in ares_parse_a_reply() local
230 hostent = malloc(sizeof(struct hostent)); in ares_parse_a_reply()
231 if (hostent) in ares_parse_a_reply()
233 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply()
234 if (hostent->h_addr_list) in ares_parse_a_reply()
237 hostent->h_name = hostname; in ares_parse_a_reply()
238 hostent->h_aliases = aliases; in ares_parse_a_reply()
239 hostent->h_addrtype = AF_INET; in ares_parse_a_reply()
240 hostent->h_length = sizeof(struct in_addr); in ares_parse_a_reply()
[all …]
Dares_gethostbyname.c74 struct hostent *host);
77 static int file_lookup(const char *name, int family, struct hostent **host);
78 static void sort_addresses(struct hostent *host,
80 static void sort6_addresses(struct hostent *host,
135 struct hostent *host; in next_lookup()
183 struct hostent *host = NULL; in host_callback()
228 struct hostent *host) in end_hquery()
243 struct hostent hostent; in fake_hostent() local
284 hostent.h_length = (int)sizeof(struct in_addr); in fake_hostent()
289 hostent.h_length = (int)sizeof(struct ares_in6_addr); in fake_hostent()
[all …]
Dares.h270 struct hostent;
286 struct hostent *hostent);
370 struct hostent **host);
479 struct hostent **host,
485 struct hostent **host,
494 struct hostent **host);
498 struct hostent **host);
514 CARES_EXTERN void ares_free_hostent(struct hostent *host);
Dares_gethostbyaddr.c67 struct hostent *host);
68 static int file_lookup(struct ares_addr *addr, struct hostent **host);
114 struct hostent *host; in next_lookup()
147 struct hostent *host; in addr_callback()
174 struct hostent *host) in end_aquery()
182 static int file_lookup(struct ares_addr *addr, struct hostent **host) in file_lookup()
Dacountry.c95 static void callback(void *arg, int status, int timeouts, struct hostent *host);
96 static void callback2(void *arg, int status, int timeouts, struct hostent *host);
223 static void callback(void *arg, int status, int timeouts, struct hostent *host) in callback()
251 static void callback2(void *arg, int status, int timeouts, struct hostent *host) in callback2()
Dadig.c203 struct hostent *hostent; in main() local
263 hostent = gethostbyname(optarg); in main()
264 if (!hostent) in main()
270 switch (hostent->h_addrtype) in main()
274 memcpy(&srvr->addr.addr4, hostent->h_addr, in main()
279 memcpy(&srvr->addr.addr6, hostent->h_addr, in main()
Dahost.c62 static void callback(void *arg, int status, int timeouts, struct hostent *host);
166 static void callback(void *arg, int status, int timeouts, struct hostent *host) in callback()
/external/curl/lib/
Dhostip4.c129 struct hostent *h = NULL;
131 struct hostent *buf = NULL;
174 (struct hostent *)buf,
175 (char *)buf + sizeof(struct hostent),
176 CURL_HOSTENT_SIZE - sizeof(struct hostent),
193 (struct hostent *)buf,
194 (char *)buf + sizeof(struct hostent),
195 CURL_HOSTENT_SIZE - sizeof(struct hostent),
252 (sizeof(struct hostent)+sizeof(struct hostent_data))) {
260 (struct hostent *)buf,
[all …]
/external/netperf/src/missing/
Dgetaddrinfo.c343 struct hostent *hostent; local
414 hostent = gethostbyaddr((char *)&addr_buf,
416 if (hostent != NULL)
417 canonname = hostent->h_name;
427 hostent = gethostbyname(nodename);
428 if (hostent == NULL) {
442 addr_list = (struct in_addr **)hostent->h_addr_list;
445 canonname = hostent->h_name;
527 struct hostent *hostent; local
572 hostent = NULL;
[all …]
/external/libpcap/Win32/Include/net/
Dnetdb.h110 struct hostent *gethostent (void);
128 struct hostent *gethostbyaddr_r (const char *__addr,
130 struct hostent *__result,
132 struct hostent *gethostbyname_r (const char * __name,
133 struct hostent *__result, char *__buffer,
135 struct hostent *gethostent_r (struct hostent *__result,
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c379 #define ENTNAME hostent
390 typedef struct hostent hostent; typedef
411 hostent * result_buf,
441 hostent * result_buf,
474 hostent * result_buf,
505 hostent * hostent; member
531 hostent * result_buf,
593 hostent * result_buf,
661 hostent * result_buf, in _nss_mdns_gethostbyname_r()
685 hostent * result_buf, in _nss_mdns_gethostbyname2_r()
[all …]
/external/libcups/cups/
Dhttp-addr.c401 struct hostent *host; /* Host from name service */ in httpAddrLookup()
673 struct hostent * /* O - Host entry */
712 cg->hostent.h_name = (char *)name; in httpGetHostByName()
713 cg->hostent.h_aliases = NULL; in httpGetHostByName()
714 cg->hostent.h_addrtype = AF_LOCAL; in httpGetHostByName()
715 cg->hostent.h_length = (int)strlen(name) + 1; in httpGetHostByName()
716 cg->hostent.h_addr_list = cg->ip_ptrs; in httpGetHostByName()
722 return (&cg->hostent); in httpGetHostByName()
749 cg->hostent.h_name = (char *)name; in httpGetHostByName()
750 cg->hostent.h_aliases = NULL; in httpGetHostByName()
[all …]
Dcups-private.h101 struct hostent hostent; /* Host entry for IP address */ member
/external/syslinux/core/lwip/src/include/lwip/
Dnetdb.h72 struct hostent { struct
100 struct hostent *lwip_gethostbyname(const char *name); argument
101 int lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf,
102 size_t buflen, struct hostent **result, int *h_errnop);
/external/tcpdump/missing/
Daddrinfo.h81 extern void freehostent (struct hostent *);
84 extern struct hostent *getipnodebyaddr (const void *, size_t, int, int *);
85 extern struct hostent *getipnodebyname (const char *, int, int, int *);
/external/libpcap/Win32/Include/
Dinetprivate.h44 extern struct hostent *_gethtent(void);
45 extern struct hostent *_gethtbyname(const char *name);
46 extern struct hostent *_gethtbyaddr(const char *addr, int len,
Daddrinfo.h81 extern void freehostent (struct hostent *);
87 extern struct hostent *getipnodebyaddr (const void *, size_t, int, int *);
88 extern struct hostent *getipnodebyname (const char *, int, int, int *);
/external/ppp/pppd/plugins/radius/
Dip_util.c31 struct hostent *hp; in rc_get_ipaddr()
37 else if ((hp = gethostbyname (host)) == (struct hostent *) NULL) in rc_get_ipaddr()
105 struct hostent *hp; in rc_ip_hostname()
/external/syslinux/core/lwip/src/api/
Dnetdb.c84 struct hostent*
91 HOSTENT_STORAGE struct hostent s_hostent; in lwip_gethostbyname()
162 lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf, in lwip_gethostbyname_r()
163 size_t buflen, struct hostent **result, int *h_errnop) in lwip_gethostbyname_r()
/external/ltp/testcases/kernel/syscalls/gethostbyname_r/
Dgethostbyname_r01.c68 struct hostent resbuf; in check_vulnerable()
69 struct hostent *result; in check_vulnerable()
/external/chromium-libpac/src/
Dproxy_resolver_js_bindings.cc66 struct hostent* he = gethostbyname(host.c_str()); in DnsResolveImpl()
83 struct hostent* he = gethostbyname(host.c_str()); in DnsResolveExImpl()

12345