2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00
This commit is contained in:
Mark Andrews
2004-04-13 02:54:15 +00:00
parent 1ae75c1024
commit 2a23a62524
4 changed files with 26 additions and 17 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dig.c,v 1.188 2004/04/13 02:39:34 marka Exp $ */ /* $Id: dig.c,v 1.189 2004/04/13 02:54:14 marka Exp $ */
#include <config.h> #include <config.h>
#include <stdlib.h> #include <stdlib.h>
@@ -41,8 +41,6 @@
#include <dns/rdataclass.h> #include <dns/rdataclass.h>
#include <dns/result.h> #include <dns/result.h>
#include <dig/dig.h>
#ifdef DIG_SIGCHASE #ifdef DIG_SIGCHASE
#ifndef DIG_SIGCHASE_BU #ifndef DIG_SIGCHASE_BU
#define DIG_SIGCHASE_BU 1 #define DIG_SIGCHASE_BU 1
@@ -52,6 +50,8 @@
#endif #endif
#endif #endif
#include <dig/dig.h>
extern ISC_LIST(dig_lookup_t) lookup_list; extern ISC_LIST(dig_lookup_t) lookup_list;
extern dig_serverlist_t server_list; extern dig_serverlist_t server_list;
extern ISC_LIST(dig_searchlist_t) search_list; extern ISC_LIST(dig_searchlist_t) search_list;

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: host.c,v 1.96 2004/04/13 02:39:35 marka Exp $ */ /* $Id: host.c,v 1.97 2004/04/13 02:54:14 marka Exp $ */
#include <config.h> #include <config.h>
#include <limits.h> #include <limits.h>
@@ -209,7 +209,7 @@ say_message(dns_name_t *name, const char *msg, dns_rdata_t *rdata,
printf("\n"); printf("\n");
isc_buffer_free(&b); isc_buffer_free(&b);
} }
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
/* Just for compatibility : not use in host program */ /* Just for compatibility : not use in host program */
isc_result_t isc_result_t
printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset, printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset,

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dig.h,v 1.83 2004/04/13 02:39:35 marka Exp $ */ /* $Id: dig.h,v 1.84 2004/04/13 02:54:15 marka Exp $ */
#ifndef DIG_H #ifndef DIG_H
#define DIG_H #define DIG_H
@@ -79,7 +79,7 @@ ISC_LANG_BEGINDECLS
typedef struct dig_lookup dig_lookup_t; typedef struct dig_lookup dig_lookup_t;
typedef struct dig_query dig_query_t; typedef struct dig_query dig_query_t;
typedef struct dig_server dig_server_t; typedef struct dig_server dig_server_t;
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
typedef struct dig_message dig_message_t; typedef struct dig_message dig_message_t;
#endif #endif
typedef ISC_LIST(dig_server_t) dig_serverlist_t; typedef ISC_LIST(dig_server_t) dig_serverlist_t;
@@ -113,10 +113,10 @@ struct dig_lookup {
new_search, new_search,
besteffort, besteffort,
dnssec; dnssec;
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
isc_boolean_t sigchase; isc_boolean_t sigchase;
#ifdef _SIGCHASE_TD_ #if DIG_SIGCHASE_TD
isc_boolean_t do_topdown, isc_boolean_t do_topdown,
trace_root_sigchase, trace_root_sigchase,
rdtype_sigchaseset, rdtype_sigchaseset,
rdclass_sigchaseset; rdclass_sigchaseset;
@@ -129,7 +129,7 @@ isc_boolean_t do_topdown,
char cmdline[MXNAME]; char cmdline[MXNAME];
dns_rdatatype_t rdtype; dns_rdatatype_t rdtype;
dns_rdatatype_t qrdtype; dns_rdatatype_t qrdtype;
#ifdef _SIGCHASE_TD_ #if DIG_SIGCHASE_TD
dns_rdatatype_t rdtype_sigchase; dns_rdatatype_t rdtype_sigchase;
dns_rdatatype_t qrdtype_sigchase; dns_rdatatype_t qrdtype_sigchase;
dns_rdataclass_t rdclass_sigchase; dns_rdataclass_t rdclass_sigchase;
@@ -203,7 +203,7 @@ struct dig_searchlist {
char origin[MXNAME]; char origin[MXNAME];
ISC_LINK(dig_searchlist_t) link; ISC_LINK(dig_searchlist_t) link;
}; };
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
struct dig_message { struct dig_message {
dns_message_t *msg; dns_message_t *msg;
ISC_LINK(dig_message_t) link; ISC_LINK(dig_message_t) link;
@@ -280,7 +280,7 @@ destroy_libs(void);
void void
set_search_domain(char *domain); set_search_domain(char *domain);
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
void void
clean_trustedkey(void); clean_trustedkey(void);
#endif #endif
@@ -288,7 +288,7 @@ clean_trustedkey(void);
/* /*
* Routines to be defined in dig.c, host.c, and nslookup.c. * Routines to be defined in dig.c, host.c, and nslookup.c.
*/ */
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
isc_result_t isc_result_t
printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset, printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset,
isc_buffer_t *target); isc_buffer_t *target);
@@ -317,7 +317,7 @@ dighost_shutdown(void);
char * char *
next_token(char **stringp, const char *delim); next_token(char **stringp, const char *delim);
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
/* Chasing functions */ /* Chasing functions */
dns_rdataset_t * dns_rdataset_t *
chase_scanname(dns_name_t *name, dns_rdatatype_t type, dns_rdatatype_t covers); chase_scanname(dns_name_t *name, dns_rdatatype_t type, dns_rdatatype_t covers);

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: nslookup.c,v 1.102 2004/04/13 02:39:35 marka Exp $ */ /* $Id: nslookup.c,v 1.103 2004/04/13 02:54:15 marka Exp $ */
#include <config.h> #include <config.h>
@@ -42,6 +42,15 @@
#include <dns/rdatatype.h> #include <dns/rdatatype.h>
#include <dns/byaddr.h> #include <dns/byaddr.h>
#ifdef DIG_SIGCHASE
#ifndef DIG_SIGCHASE_BU
#define DIG_SIGCHASE_BU 1
#endif
#ifndef DIG_SIGCHASE_TD
#define DIG_SIGCHASE_TD 1
#endif
#endif
#include <dig/dig.h> #include <dig/dig.h>
extern ISC_LIST(dig_lookup_t) lookup_list; extern ISC_LIST(dig_lookup_t) lookup_list;
@@ -189,7 +198,7 @@ printa(dns_rdata_t *rdata) {
printf("Address: %.*s\n", (int)isc_buffer_usedlength(&b), printf("Address: %.*s\n", (int)isc_buffer_usedlength(&b),
(char *)isc_buffer_base(&b)); (char *)isc_buffer_base(&b));
} }
#ifdef _SIGCHASE_ #ifdef DIG_SIGCHASE
/* Just for compatibility : not use in host program */ /* Just for compatibility : not use in host program */
isc_result_t isc_result_t
printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset, printrdataset(dns_name_t *owner_name, dns_rdataset_t *rdataset,