resolv.h (13771) | resolv.h (17902) |
---|---|
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.5 1996/01/07 05:01:50 peter Exp $ | 56 * $Id: resolv.h,v 1.6 1996/01/30 23:30:34 mpp 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 19951031 | 75#define __RES 19960229 |
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 --- 45 unchanged lines hidden (view full) --- 129#define RES_IGNTC 0x00000020 /* ignore truncation errors */ 130#define RES_RECURSE 0x00000040 /* recursion desired */ 131#define RES_DEFNAMES 0x00000080 /* use default domain name */ 132#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ 133#define RES_DNSRCH 0x00000200 /* search up local domain tree */ 134#define RES_INSECURE1 0x00000400 /* type 1 security disabled */ 135#define RES_INSECURE2 0x00000800 /* type 2 security disabled */ 136#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */ | 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 --- 45 unchanged lines hidden (view full) --- 129#define RES_IGNTC 0x00000020 /* ignore truncation errors */ 130#define RES_RECURSE 0x00000040 /* recursion desired */ 131#define RES_DEFNAMES 0x00000080 /* use default domain name */ 132#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ 133#define RES_DNSRCH 0x00000200 /* search up local domain tree */ 134#define RES_INSECURE1 0x00000400 /* type 1 security disabled */ 135#define RES_INSECURE2 0x00000800 /* type 2 security disabled */ 136#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */ |
137#define RES_USE_INET6 0x00002000 /* use/map IPv6 in gethostbyname() */ |
|
137 138#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) 139 140/* 141 * Resolver "pfcode" values. Used by dig. 142 */ 143#define RES_PRF_STATS 0x00000001 144/* 0x00000002 */ --- 28 unchanged lines hidden (view full) --- 173 int querylen, 174 u_char *ans, 175 int anssiz, 176 int *resplen)); 177 178extern struct __res_state _res; 179 180/* Private routines shared between libc/net, named, nslookup and others. */ | 138 139#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) 140 141/* 142 * Resolver "pfcode" values. Used by dig. 143 */ 144#define RES_PRF_STATS 0x00000001 145/* 0x00000002 */ --- 28 unchanged lines hidden (view full) --- 174 int querylen, 175 u_char *ans, 176 int anssiz, 177 int *resplen)); 178 179extern struct __res_state _res; 180 181/* Private routines shared between libc/net, named, nslookup and others. */ |
182#define res_hnok __res_hnok 183#define res_ownok __res_ownok 184#define res_mailok __res_mailok 185#define res_dnok __res_dnok 186#define loc_ntoa __loc_ntoa 187#define loc_aton __loc_aton |
|
181#define dn_skipname __dn_skipname 182#define fp_query __fp_query 183#define fp_nquery __fp_nquery 184#define hostalias __hostalias 185#define putlong __putlong 186#define putshort __putshort 187#define p_class __p_class 188#define p_time __p_time --- 4 unchanged lines hidden (view full) --- 193#define p_rr __p_rr 194#define p_option __p_option 195#define res_randomid __res_randomid 196#define res_isourserver __res_isourserver 197#define res_nameinquery __res_nameinquery 198#define res_queriesmatch __res_queriesmatch 199 200__BEGIN_DECLS | 188#define dn_skipname __dn_skipname 189#define fp_query __fp_query 190#define fp_nquery __fp_nquery 191#define hostalias __hostalias 192#define putlong __putlong 193#define putshort __putshort 194#define p_class __p_class 195#define p_time __p_time --- 4 unchanged lines hidden (view full) --- 200#define p_rr __p_rr 201#define p_option __p_option 202#define res_randomid __res_randomid 203#define res_isourserver __res_isourserver 204#define res_nameinquery __res_nameinquery 205#define res_queriesmatch __res_queriesmatch 206 207__BEGIN_DECLS |
208int __res_hnok __P((const char *)); 209int __res_ownok __P((const char *)); 210int __res_mailok __P((const char *)); 211int __res_dnok __P((const char *)); 212int __loc_aton __P((const char *ascii, u_char *binary)); 213char * __loc_ntoa __P((const u_char *binary, char *ascii)); |
|
201int __dn_skipname __P((const u_char *, const u_char *)); 202void __fp_resstat __P((struct __res_state *, FILE *)); 203void __fp_query __P((const u_char *, FILE *)); 204void __fp_nquery __P((const u_char *, int, FILE *)); 205char *__hostalias __P((const char *)); 206void __putlong __P((u_int32_t, u_char *)); 207void __putshort __P((u_int16_t, u_char *)); 208char *__p_time __P((u_int32_t)); --- 28 unchanged lines hidden --- | 214int __dn_skipname __P((const u_char *, const u_char *)); 215void __fp_resstat __P((struct __res_state *, FILE *)); 216void __fp_query __P((const u_char *, FILE *)); 217void __fp_nquery __P((const u_char *, int, FILE *)); 218char *__hostalias __P((const char *)); 219void __putlong __P((u_int32_t, u_char *)); 220void __putshort __P((u_int16_t, u_char *)); 221char *__p_time __P((u_int32_t)); --- 28 unchanged lines hidden --- |