Commit | Line | Data |
---|---|---|
dc0d77d7 CE |
1 | #ifndef QUERY_H |
2 | #define QUERY_H | |
3 | ||
4 | #include "dns.h" | |
5 | #include "uint32.h" | |
6 | ||
7 | #define QUERY_MAXLEVEL 5 | |
8 | #define QUERY_MAXALIAS 16 | |
9 | #define QUERY_MAXNS 16 | |
10 | ||
11 | struct query { | |
12 | unsigned int loop; | |
13 | unsigned int level; | |
14 | char *name[QUERY_MAXLEVEL]; | |
15 | char *control[QUERY_MAXLEVEL]; /* pointing inside name */ | |
16 | char *ns[QUERY_MAXLEVEL][QUERY_MAXNS]; | |
17 | char servers[QUERY_MAXLEVEL][64]; | |
18 | char *alias[QUERY_MAXALIAS]; | |
19 | uint32 aliasttl[QUERY_MAXALIAS]; | |
20 | char localip[4]; | |
21 | char type[2]; | |
22 | char class[2]; | |
23 | struct dns_transmit dt; | |
24 | } ; | |
25 | ||
26 | extern int query_start(struct query *,char *,char *,char *,char *); | |
27 | extern void query_io(struct query *,iopause_fd *,struct taia *); | |
28 | extern int query_get(struct query *,iopause_fd *,struct taia *); | |
29 | ||
30 | extern void query_forwardonly(void); | |
31 | ||
32 | #endif |