*/
#ifndef lint
-static const char rcsid[] = "$Id: ns_verify.c,v 1.4 2001/02/15 14:10:59 mellon Exp $";
+static const char rcsid[] = "$Id: ns_verify.c,v 1.5 2001/02/22 07:28:22 mellon Exp $";
#endif
-#if defined (TRACING)
#define time(x) trace_mr_time (x)
-time_t trace_mr_time (time_t *);
-#endif
/* Import. */
#include "arpa/nameser.h"
#include <isc/dst.h>
+time_t trace_mr_time (time_t *);
+
/* Private. */
#define BOUNDS_CHECK(ptr, count) \
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
-static const char rcsid[] = "$Id: res_init.c,v 1.3 2000/02/02 19:59:16 mellon Exp $";
+static const char rcsid[] = "$Id: res_init.c,v 1.4 2001/02/22 07:28:23 mellon Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
*/
extern int __res_vinit(res_state, int);
+#if defined (TRACING)
+u_int trace_mr_res_randomid(u_int);
+#endif
+
int
res_ninit(res_state statp) {
statp->retry = RES_DFLRETRY;
statp->options = RES_DEFAULT;
statp->id = res_randomid();
+#if defined (TRACING)
+ statp->id = trace_mr_res_randomid (statp -> id);
+#endif
}
#ifdef USELOOPBACK
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_send.c,v 1.6 2001/02/15 14:11:11 mellon Exp $";
+static const char rcsid[] = "$Id: res_send.c,v 1.7 2001/02/22 07:28:25 mellon Exp $";
#endif /* LIBC_SCCS and not lint */
-/* If we're tracing, rename the I/O functions. */
-#if defined (TRACING)
+/* Rename the I/O functions in case we're tracing. */
#define send trace_mr_send
#define recvfrom trace_mr_recvfrom
#define read trace_mr_read
#define socket trace_mr_socket
#define bind trace_mr_bind
#define close trace_mr_close
-#endif
+#define select trace_mr_select
+#define time trace_mr_time
/*
* Send query to name server and wait for reply.