67 # include <sys/types.h> 85 #define __RES 19951031 94 #define _PATH_RESCONF "/etc/resolv.conf" 103 #define LOCALDOMAINPARTS 2 106 #define RES_TIMEOUT 5 107 #define MAXRESOLVSORT 10 108 #define RES_MAXNDOTS 15 117 #define nsaddr nsaddr_list[0] 135 #define RES_INIT 0x00000001 136 #define RES_DEBUG 0x00000002 137 #define RES_AAONLY 0x00000004 138 #define RES_USEVC 0x00000008 139 #define RES_PRIMARY 0x00000010 140 #define RES_IGNTC 0x00000020 141 #define RES_RECURSE 0x00000040 142 #define RES_DEFNAMES 0x00000080 143 #define RES_STAYOPEN 0x00000100 144 #define RES_DNSRCH 0x00000200 145 #define RES_INSECURE1 0x00000400 146 #define RES_INSECURE2 0x00000800 147 #define RES_NOALIASES 0x00001000 148 #define RES_USE_INET6 0x00002000 149 #define RES_NOTLDQUERY 0x00000000 151 #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) 156 #define RES_PRF_STATS 0x00000001 158 #define RES_PRF_CLASS 0x00000004 159 #define RES_PRF_CMD 0x00000008 160 #define RES_PRF_QUES 0x00000010 161 #define RES_PRF_ANS 0x00000020 162 #define RES_PRF_AUTH 0x00000040 163 #define RES_PRF_ADD 0x00000080 164 #define RES_PRF_HEAD1 0x00000100 165 #define RES_PRF_HEAD2 0x00000200 166 #define RES_PRF_TTLID 0x00000400 167 #define RES_PRF_HEADX 0x00000800 168 #define RES_PRF_QUERY 0x00001000 169 #define RES_PRF_REPLY 0x00002000 170 #define RES_PRF_INIT 0x00004000 184 const u_char **query,
200 #define dn_skipname __dn_skipname 201 #define fp_query __fp_query 202 #define fp_nquery __fp_nquery 203 #define hostalias __hostalias 204 #define putlong __putlong 205 #define putshort __putshort 206 #define p_class __p_class 207 #define p_time __p_time 208 #define p_type __p_type 209 #define p_cdnname __p_cdnname 210 #define p_cdname __p_cdname 211 #define p_fqname __p_fqname 213 #define p_option __p_option 214 #define res_randomid __res_randomid 215 #define res_isourserver __res_isourserver 216 #define res_nameinquery __res_nameinquery 217 #define res_queriesmatch __res_queriesmatch 228 const u_char *
__p_cdnname(
const u_char *,
const u_char *,
int, FILE *);
229 const u_char *
__p_cdname(
const u_char *,
const u_char *, FILE *);
230 const u_char *
__p_fqname(
const u_char *,
const u_char *, FILE *);
231 const u_char *
__p_rr(
const u_char *,
const u_char *, FILE *);
235 int dn_comp(
const char *, u_char *,
int, u_char **, u_char **);
236 int dn_expand(
const u_char *,
const u_char *,
const u_char *,
241 int res_query(
const char *,
int,
int, u_char *,
int);
242 int res_search(
const char *,
int,
int, u_char *,
int);
245 int res_mkquery(
int,
const char *,
int,
int,
const u_char *,
int,
246 const u_char *, u_char *,
int);
247 int res_send(
const u_char *,
int, u_char *,
int);
250 const u_char *,
const u_char *);
252 const u_char *,
const u_char *);
res_sendhookact(* res_send_rhook)(const struct sockaddr_in *ns, const u_char *query, int querylen, u_char *ans, int anssiz, int *resplen)
Definition: resolv.h:190
int __dn_skipname(const u_char *, const u_char *)
void __fp_resstat(struct __res_state *, FILE *)
int res_init_ip(const char *szIp)
char * inet_nsap_ntoa(int, const u_char *, char *ascii)
#define MAXDNSRCH
Definition: resolv.h:102
char unused[3]
Definition: resolv.h:124
const u_char * __p_fqname(const u_char *, const u_char *, FILE *)
int nscount
Definition: resolv.h:114
struct in_addr addr
Definition: resolv.h:126
#define res_randomid
Definition: resolv.h:214
#define MAXNS
Definition: resolv.h:100
u_long options
Definition: resolv.h:113
int res_query(const char *, int, int, u_char *, int)
const char * __p_type(int)
void __fp_nquery(const u_char *, int, FILE *)
int res_search(const char *, int, int, u_char *, int)
void __fp_query(const u_char *, FILE *)
void __putlong(u_int32, u_char *)
const char * __p_option(u_long option)
unsigned ndots
Definition: resolv.h:122
u_int32 mask
Definition: resolv.h:127
char * dnsrch[MAXDNSRCH+1]
Definition: resolv.h:119
int dn_expand(const u_char *, const u_char *, const u_char *, char *, int)
int retrans
Definition: resolv.h:111
#define MAXDNSLUS
Definition: resolv.h:104
int res_mkquery(int, const char *, int, int, const u_char *, int, const u_char *, u_char *, int)
const char * __p_class(int)
void __p_query(const u_char *)
#define res_nameinquery
Definition: resolv.h:216
unsigned short u_int16
Definition: types.h:57
int retry
Definition: resolv.h:112
#define MAXRESOLVSORT
Definition: resolv.h:107
char * __hostalias(const char *)
#define res_queriesmatch
Definition: resolv.h:217
u_short id
Definition: resolv.h:118
void __putshort(u_int16, u_char *)
unsigned int u_int32
Definition: types.h:56
int res_send(const u_char *, int, u_char *, int)
unsigned nsort
Definition: resolv.h:123
int dn_comp(const char *, u_char *, int, u_char **, u_char **)
const u_char * __p_cdname(const u_char *, const u_char *, FILE *)
int res_local_querydomain(const char *, const char *, int, int, u_char *, int)
char defdname[MAXDNAME]
Definition: resolv.h:120
struct __res_state::@0 sort_list[MAXRESOLVSORT]
struct __res_state _sip_res
struct sockaddr_in nsaddr_list[MAXNS]
Definition: resolv.h:115
u_int inet_nsap_addr(const char *, u_char *, int maxlen)
res_sendhookact(* res_send_qhook)(struct sockaddr_in *const *ns, const u_char **query, int *querylen, u_char *ans, int anssiz, int *resplen)
Definition: resolv.h:183
char lookups[MAXDNSLUS]
Definition: resolv.h:129
#define MAXDNAME
Definition: nameser.h:84
#define res_isourserver
Definition: resolv.h:215
const u_char * __p_cdnname(const u_char *, const u_char *, int, FILE *)
res_sendhookact
Definition: resolv.h:180
u_long pfcode
Definition: resolv.h:121
const u_char * __p_rr(const u_char *, const u_char *, FILE *)