Annotation of embedaddon/mtr/dns.h, revision 1.1.1.1
1.1 misho 1: /*
2: mtr -- a network diagnostic tool
3: Copyright (C) 1997,1998 Matt Kimball
4:
5: This program is free software; you can redistribute it and/or modify
6: it under the terms of the GNU General Public License version 2 as
7: published by the Free Software Foundation.
8:
9: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU General Public License for more details.
13:
14: You should have received a copy of the GNU General Public License
15: along with this program; if not, write to the Free Software
16: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17: */
18:
19: #include <config.h>
20: #include <netinet/in.h>
21: #include <resolv.h>
22:
23: /* Prototypes for dns.c */
24:
25: void dns_open(void);
26: int dns_waitfd(void);
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:
48: void dns_events(double *sinterval);
49: char *dns_lookup(ip_t * address);
50: char *dns_lookup2(ip_t * address);
51: struct hostent * dns_forward(const char *name);
52: char *strlongip(ip_t * ip);
53:
54: void addr2ip6arpa( ip_t * ip, char * buf );
55: struct hostent *addr2host( const char *addr, int type );
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>