~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to bin/dig/include/dig/dig.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2006-01-05 12:29:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060105122928-oih7ttkkmpb90q8q
Tags: 1:9.3.2-1
* New upstream
* use lsb-base for start/stop messages in init.d.
* switch to debhelper 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 2000-2003  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: dig.h,v 1.71.2.6.2.7 2004/09/06 01:33:06 marka Exp $ */
 
18
/* $Id: dig.h,v 1.71.2.6.2.11 2005/07/04 03:29:45 marka Exp $ */
19
19
 
20
20
#ifndef DIG_H
21
21
#define DIG_H
35
35
#include <isc/sockaddr.h>
36
36
#include <isc/socket.h>
37
37
 
38
 
#define MXSERV 6
 
38
#define MXSERV 20
39
39
#define MXNAME (DNS_NAME_MAXTEXT+1)
40
40
#define MXRD 32
41
41
#define BUFSIZE 512
66
66
 * in a tight loop of constant lookups.  It's value is arbitrary.
67
67
 */
68
68
 
69
 
#define ROOTNS 1
70
 
/*
71
 
 * Set the number of root servers to ask for information when running in
72
 
 * trace mode.
73
 
 * XXXMWS -- trace mode is currently semi-broken, and this number *MUST*
74
 
 * be 1.
75
 
 */
76
 
 
77
69
/*
78
70
 * Defaults for the sigchase suboptions.  Consolidated here because
79
71
 * these control the layout of dig_lookup_t (among other things).
224
216
                ISC_LINK(dig_message_t) link;
225
217
};
226
218
#endif
 
219
 
 
220
typedef ISC_LIST(dig_searchlist_t) dig_searchlistlist_t;
 
221
typedef ISC_LIST(dig_lookup_t) dig_lookuplist_t;
 
222
 
 
223
/*
 
224
 * Externals from dighost.c
 
225
 */
 
226
 
 
227
extern dig_lookuplist_t lookup_list;
 
228
extern dig_serverlist_t server_list;
 
229
extern dig_searchlistlist_t search_list;
 
230
 
 
231
extern isc_boolean_t have_ipv4, have_ipv6, specified_source,
 
232
        usesearch, qr;
 
233
extern in_port_t port;
 
234
extern unsigned int timeout;
 
235
extern isc_mem_t *mctx;
 
236
extern dns_messageid_t id;
 
237
extern int sendcount;
 
238
extern int ndots;
 
239
extern int lookup_counter;
 
240
extern int exitcode;
 
241
extern isc_sockaddr_t bind_address;
 
242
extern char keynametext[MXNAME];
 
243
extern char keyfile[MXNAME];
 
244
extern char keysecret[MXNAME];
 
245
#ifdef DIG_SIGCHASE
 
246
extern char trustedkey[MXNAME];
 
247
#endif
 
248
extern dns_tsigkey_t *key;
 
249
extern isc_boolean_t validated;
 
250
extern isc_taskmgr_t *taskmgr;
 
251
extern isc_task_t *global_task;
 
252
extern isc_boolean_t free_now;
 
253
extern isc_boolean_t debugging, memdebugging;
 
254
 
 
255
extern char *progname;
 
256
extern int tries;
 
257
extern int fatalexit;
 
258
 
227
259
/*
228
260
 * Routines in dighost.c.
229
261
 */