7 #include <netinet/in.h>
13 struct sockaddr_in sin
;
14 struct sockaddr_in6 sin6
;
29 unsigned char proto
, socktype
;
35 struct address ns
[MAXNS
];
36 unsigned nns
, attempts
, ndots
;
40 /* The limit of 48 results is a non-sharp bound on the number of addresses
41 * that can fit in one 512-byte DNS packet full of v4 results and a second
42 * packet full of v6 results. Due to headers, the actual limit is lower. */
46 hidden
int __lookup_serv(struct service buf
[static MAXSERVS
], const char *name
, int proto
, int socktype
, int flags
);
47 hidden
int __lookup_name(struct address buf
[static MAXADDRS
], char canon
[static 256], const char *name
, int family
, int flags
);
48 hidden
int __lookup_ipliteral(struct address buf
[static 1], const char *name
, int family
);
50 hidden
int __get_resolv_conf(struct resolvconf
*, char *, size_t);
51 hidden
int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf
*);
53 hidden
int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *, int), void *);