17 unsigned char proto, socktype;
23 struct address ns[MAXNS];
24 unsigned nns, attempts, ndots;
28 /* The limit of 48 results is a non-sharp bound on the number of addresses
29 * that can fit in one 512-byte DNS packet full of v4 results and a second
30 * packet full of v6 results. Due to headers, the actual limit is lower. */
34 hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
35 hidden int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags);
36 hidden int __lookup_ipliteral(struct address buf[static 1], const char *name, int family);
38 hidden int __get_resolv_conf(struct resolvconf *, char *, size_t);
39 hidden int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *);
41 hidden int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *);