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