~ubuntu-branches/debian/jessie/mtr/jessie

« back to all changes in this revision

Viewing changes to dns.h

  • Committer: Package Import Robot
  • Author(s): Robert Woodcock
  • Date: 2013-07-24 19:53:47 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20130724195347-hicfmbo16rcron5h
Tags: 0.85-1
New upstream version, closes: #706816, #717727

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
17
*/
18
18
 
 
19
#include <config.h>
19
20
#include <netinet/in.h>
20
 
 
 
21
#include <resolv.h>
21
22
 
22
23
/*  Prototypes for dns.c  */
23
24
 
24
25
void dns_open(void);
25
26
int dns_waitfd(void);
26
27
void dns_ack(void);
 
28
#ifdef ENABLE_IPV6
 
29
int dns_waitfd6(void);
 
30
void dns_ack6(void);
 
31
#ifdef NEED_RES_STATE_EXT
 
32
/* __res_state_ext is missing on many (most?) BSD systems */
 
33
struct __res_state_ext {
 
34
        union res_sockaddr_union nsaddrs[MAXNS];
 
35
        struct sort_list {
 
36
                int     af;
 
37
                union {
 
38
                        struct in_addr  ina;
 
39
                        struct in6_addr in6a;
 
40
                } addr, mask;
 
41
        } sort_list[MAXRESOLVSORT];
 
42
        char nsuffix[64];
 
43
        char nsuffix2[64];
 
44
};
 
45
#endif
 
46
#endif
 
47
 
27
48
void dns_events(double *sinterval);
28
49
char *dns_lookup(ip_t * address);
29
50
char *dns_lookup2(ip_t * address);