resolv.h (4399be3cbd35324f7a2c00d77229d995b4022138) | resolv.h (d58a9efd01c363186b7eed0e75a0bf074856bec8) |
---|---|
1/*- 2 * Copyright (c) 1983, 1987, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 49 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 50 * SOFTWARE. 51 * - 52 * --Copyright-- 53 * 54 * @(#)resolv.h 8.1 (Berkeley) 6/2/93 55 * From Id: resolv.h,v 4.9.1.2 1993/05/17 09:59:01 vixie Exp | 1/*- 2 * Copyright (c) 1983, 1987, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 49 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 50 * SOFTWARE. 51 * - 52 * --Copyright-- 53 * 54 * @(#)resolv.h 8.1 (Berkeley) 6/2/93 55 * From Id: resolv.h,v 4.9.1.2 1993/05/17 09:59:01 vixie Exp |
56 * $Id: resolv.h,v 1.2 1994/09/25 02:11:32 pst Exp $ | 56 * $Id: resolv.h,v 1.3 1995/05/30 04:54:44 rgrimes Exp $ |
57 */ 58 59#ifndef _RESOLV_H_ 60#define _RESOLV_H_ 61 62#include <sys/param.h> 63#include <sys/types.h> 64#include <sys/cdefs.h> 65#include <stdio.h> 66 67/* 68 * revision information. this is the release date in YYYYMMDD format. 69 * it can change every day so the right thing to do with it is use it 70 * in preprocessor commands such as "#if (__RES > 19931104)". do not 71 * compare for equality; rather, use it to determine whether your resolver 72 * is new enough to contain a certain feature. 73 */ 74 | 57 */ 58 59#ifndef _RESOLV_H_ 60#define _RESOLV_H_ 61 62#include <sys/param.h> 63#include <sys/types.h> 64#include <sys/cdefs.h> 65#include <stdio.h> 66 67/* 68 * revision information. this is the release date in YYYYMMDD format. 69 * it can change every day so the right thing to do with it is use it 70 * in preprocessor commands such as "#if (__RES > 19931104)". do not 71 * compare for equality; rather, use it to determine whether your resolver 72 * is new enough to contain a certain feature. 73 */ 74 |
75#define __RES 19940415 | 75#define __RES 19950621 |
76 77/* 78 * Resolver configuration file. 79 * Normally not present, but may contain the address of the 80 * inital name server(s) to query and the domain search list. 81 */ 82 83#ifndef _PATH_RESCONF --- 31 unchanged lines hidden (view full) --- 115 struct in_addr addr; 116 u_int32_t mask; 117 } sort_list[MAXRESOLVSORT]; 118}; 119 120/* 121 * Resolver options (keep these in synch with res_debug.c, please) 122 */ | 76 77/* 78 * Resolver configuration file. 79 * Normally not present, but may contain the address of the 80 * inital name server(s) to query and the domain search list. 81 */ 82 83#ifndef _PATH_RESCONF --- 31 unchanged lines hidden (view full) --- 115 struct in_addr addr; 116 u_int32_t mask; 117 } sort_list[MAXRESOLVSORT]; 118}; 119 120/* 121 * Resolver options (keep these in synch with res_debug.c, please) 122 */ |
123#define RES_INIT 0x00000001 /* address initialized */ 124#define RES_DEBUG 0x00000002 /* print debug messages */ 125#define RES_AAONLY 0x00000004 /* authoritative answers only */ 126#define RES_USEVC 0x00000008 /* use virtual circuit */ 127#define RES_PRIMARY 0x00000010 /* query primary server only */ 128#define RES_IGNTC 0x00000020 /* ignore trucation errors */ 129#define RES_RECURSE 0x00000040 /* recursion desired */ 130#define RES_DEFNAMES 0x00000080 /* use default domain name */ 131#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ 132#define RES_DNSRCH 0x00000200 /* search up local domain tree */ | 123#define RES_INIT 0x00000001 /* address initialized */ 124#define RES_DEBUG 0x00000002 /* print debug messages */ 125#define RES_AAONLY 0x00000004 /* authoritative answers only (!IMPL)*/ 126#define RES_USEVC 0x00000008 /* use virtual circuit */ 127#define RES_PRIMARY 0x00000010 /* query primary server only (!IMPL) */ 128#define RES_IGNTC 0x00000020 /* ignore trucation errors */ 129#define RES_RECURSE 0x00000040 /* recursion desired */ 130#define RES_DEFNAMES 0x00000080 /* use default domain name */ 131#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ 132#define RES_DNSRCH 0x00000200 /* search up local domain tree */ |
133#define RES_INSECURE1 0x00000400 /* type 1 security disabled */ 134#define RES_INSECURE2 0x00000800 /* type 2 security disabled */ | 133#define RES_INSECURE1 0x00000400 /* type 1 security disabled */ 134#define RES_INSECURE2 0x00000800 /* type 2 security disabled */ |
135#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */ |
|
135 | 136 |
136#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) | 137#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) |
137 138/* 139 * Resolver "pfcode" values. Used by dig. 140 */ 141#define RES_PRF_STATS 0x00000001 142/* 0x00000002 */ 143#define RES_PRF_CLASS 0x00000004 144#define RES_PRF_CMD 0x00000008 --- 40 unchanged lines hidden (view full) --- 185#define p_class __p_class 186#define p_time __p_time 187#define p_type __p_type 188#define p_cdnname __p_cdnname 189#define p_cdname __p_cdname 190#define p_fqname __p_fqname 191#define p_rr __p_rr 192#define p_option __p_option | 138 139/* 140 * Resolver "pfcode" values. Used by dig. 141 */ 142#define RES_PRF_STATS 0x00000001 143/* 0x00000002 */ 144#define RES_PRF_CLASS 0x00000004 145#define RES_PRF_CMD 0x00000008 --- 40 unchanged lines hidden (view full) --- 186#define p_class __p_class 187#define p_time __p_time 188#define p_type __p_type 189#define p_cdnname __p_cdnname 190#define p_cdname __p_cdname 191#define p_fqname __p_fqname 192#define p_rr __p_rr 193#define p_option __p_option |
194#define res_randomid __res_randomid 195#define res_isourserver __res_isourserver 196#define res_nameinquery __res_nameinquery 197#define res_queriesmatch __res_queriesmatch |
|
193 194__BEGIN_DECLS 195int __dn_skipname __P((const u_char *, const u_char *)); 196void __fp_resstat __P((struct __res_state *, FILE *)); 197void __fp_query __P((const u_char *, FILE *)); 198void __fp_nquery __P((const u_char *, int, FILE *)); 199char *__hostalias __P((const char *)); 200void __putlong __P((u_int32_t, u_char *)); --- 6 unchanged lines hidden (view full) --- 207const u_char *__p_rr __P((const u_char *, const u_char *, FILE *)); 208const char *__p_type __P((int)); 209const char *__p_class __P((int)); 210const char *__p_option __P((u_long option)); 211int dn_comp __P((const char *, u_char *, int, u_char **, u_char **)); 212int dn_expand __P((const u_char *, const u_char *, const u_char *, 213 char *, int)); 214int res_init __P((void)); | 198 199__BEGIN_DECLS 200int __dn_skipname __P((const u_char *, const u_char *)); 201void __fp_resstat __P((struct __res_state *, FILE *)); 202void __fp_query __P((const u_char *, FILE *)); 203void __fp_nquery __P((const u_char *, int, FILE *)); 204char *__hostalias __P((const char *)); 205void __putlong __P((u_int32_t, u_char *)); --- 6 unchanged lines hidden (view full) --- 212const u_char *__p_rr __P((const u_char *, const u_char *, FILE *)); 213const char *__p_type __P((int)); 214const char *__p_class __P((int)); 215const char *__p_option __P((u_long option)); 216int dn_comp __P((const char *, u_char *, int, u_char **, u_char **)); 217int dn_expand __P((const u_char *, const u_char *, const u_char *, 218 char *, int)); 219int res_init __P((void)); |
220u_int16_t res_randomid __P((void)); |
|
215int res_query __P((const char *, int, int, u_char *, int)); 216int res_search __P((const char *, int, int, u_char *, int)); 217int res_querydomain __P((const char *, const char *, int, int, 218 u_char *, int)); 219int res_mkquery __P((int, const char *, int, int, const u_char *, int, 220 const u_char *, u_char *, int)); 221int res_send __P((const u_char *, int, u_char *, int)); | 221int res_query __P((const char *, int, int, u_char *, int)); 222int res_search __P((const char *, int, int, u_char *, int)); 223int res_querydomain __P((const char *, const char *, int, int, 224 u_char *, int)); 225int res_mkquery __P((int, const char *, int, int, const u_char *, int, 226 const u_char *, u_char *, int)); 227int res_send __P((const u_char *, int, u_char *, int)); |
228int res_isourserver __P((const struct sockaddr_in *)); 229int res_nameinquery __P((const char *, int, int, 230 const u_char *, const u_char *)); 231int res_queriesmatch __P((const u_char *, const u_char *, 232 const u_char *, const u_char *)); |
|
222__END_DECLS 223 224#endif /* !_RESOLV_H_ */ | 233__END_DECLS 234 235#endif /* !_RESOLV_H_ */ |