Commit Graph
1306 Commits
Author SHA1 Message Date
David Lawrence 6b32b7875c No more need for LIBISC definition 1999-10-11 20:22:28 +00:00
David Lawrence 98c29e4bd3 cast a suitably range checked long to isc_uint8_t when assigned to isc_uint8_t 1999-10-11 20:16:33 +00:00
Bob Halley eba3ad47e7 checkpoint: basic answer processing and caching 1999-10-11 19:24:28 +00:00
Bob Halley 3c24b4ebae addrdataset() now returns the existing rdataset in addedrdataset if the
result is DNS_R_UNCHANGED.

Adjust find_deepest_zonecut() to deal with the new treatment of level_matches
by the RBT code.  These changes, combined with the RBT changes, fix a bug
where the wrong delegation was returned if the partial match was a terminal
node in the RBT.

Deal with wildcards of the form *.<zone_origin>.  This stops us from
treating the zone top as a delegation point if wildcards are present.

delegating_type() was erroneously returning true for type NS records in a
cache database.
1999-10-11 19:23:48 +00:00
Bob Halley 084b422656 add attributes used by the resolver for caching 1999-10-11 19:17:38 +00:00
Bob Halley 61c22c272f Set level_matches consistently. It now is the number of levels
above the partial match node.
1999-10-11 19:16:56 +00:00
Bob Halley a1ee8ac346 move rbt typedef to types.h; add trust levels 1999-10-11 19:15:37 +00:00
Bob Halley e717473254 move rbt typedef to types.h 1999-10-11 19:15:23 +00:00
Bob Halley 00e7d7a0e8 Add DNSSEC security roots RBT 1999-10-11 19:13:17 +00:00
David Lawrence 7046378cf8 include isc/print.h for vsnprintf 1999-10-11 16:10:06 +00:00
Brian Wellington c0ddfabced dns_dnssec_findzonekeys should use isc_result_t, not dns_result_t 1999-10-11 15:15:39 +00:00
David Lawrence 135808ceb1 use vsnprintf, now portable because of isc/print.c.
removed static forward declaration of isc_log_vwrite(), now public.
declared assignchannel() as static.
1999-10-11 14:50:51 +00:00
David Lawrence 899f7f9af5 ah, oops. need stdargs.h for va_list type. 1999-10-11 14:12:31 +00:00
David Lawrence 6ffc076c08 isc_log_vwrite is now a public function 1999-10-11 13:28:49 +00:00
David Lawrence 00a1623a59 isc_log_vwrite is now a public function 1999-10-11 13:16:42 +00:00
William King b14c0010e7 info --> putinfo 1999-10-10 20:29:19 +00:00
William King 5edd5b3997 added test case end stanza line to journal output
added name of test case to start stanza
1999-10-10 20:24:13 +00:00
James Brister f7a00c14fd Misc changes due to views 1999-10-10 17:16:07 +00:00
James Brister df82fed5c2 Added confcache.h and confresolv.h 1999-10-10 17:13:40 +00:00
James Brister c6d0fc864d Added build of confresolv.o and confcache.o 1999-10-10 17:12:52 +00:00
James Brister 5f42ef032d Fixed CPP macro name that wasn't changed when platform.h was created. 1999-10-10 17:11:41 +00:00
James Brister 95360399dc Placeholders for future config file structures. 1999-10-10 17:09:37 +00:00
Mark Andrews fce52c2b8c `A prototype should be a prototype. 1999-10-09 13:24:37 +00:00
Bob Halley 729fc126d3 do not detach from db twice when removing 1999-10-09 02:49:16 +00:00
David Lawrence 4ad9b25e6d new function isc_time_microdiff 1999-10-09 02:40:32 +00:00
David Lawrence d3e7d196cd isc_time_millidiff is now isc_time_microdiff 1999-10-09 02:39:53 +00:00
Andreas Gustafsson 91c49d591c use ISC_PLATFORM_HAVESALEN, not ISC_NET_HAVESALEN 1999-10-09 01:31:29 +00:00
David Lawrence 83e4218f6c Cast int arguments to isc_buffer_putuint{16,32} to appropriate size.
they are already masked out of a 64 bit int to the correct size, but
NT's CL is Unaware.
1999-10-09 00:00:54 +00:00
David Lawrence 6ea5cc5f02 cast 64 bit 't' to int assigning to tm.tm_sec; t is guaranteed < 60.
make value32 be isc_int32_t; loss of data resulting from conversion of
isc_int64_t is already checked.
1999-10-08 23:58:07 +00:00
David Lawrence ea86510592 cast token as_ulong to unsigned char rather than use token as_char
because the latter will give the wrong value on big-endian systems.
1999-10-08 23:54:40 +00:00
David Lawrence d2d1163f55 um, ignore that last change. using token.value.as_char will not be
correct on big-endian systems.  use as_ulong but cast to unsigned char.
1999-10-08 23:52:39 +00:00
David Lawrence cec7a04adc rename CALLBACK to FINDCALLBACK to avoid conflict with windefs.h
definition of CALLBACK.
1999-10-08 23:39:14 +00:00
David Lawrence fdbe021c62 Cast an argument to dns_rdatatype_iszonecutauth to dns_rdatatype_t;
it is already being range limited.
1999-10-08 23:38:22 +00:00
David Lawrence 571469b0a5 Make 'offset' in dns_name_towire() be isc_uint16_t instead of unsigned int,
since that is what expected by dns_compress_add() called within.  There
is a latent issue with offset being assigned from target->used without range
checking, but since this is already marked by /*XXX*/ I assume that this was
a known problem already.
1999-10-08 23:36:11 +00:00
David Lawrence 619fb9349b Make the conversion from 64 bit time to 32 bit time explicit. It
is already checked after the conversion to ensure no data is lost.
1999-10-08 23:26:55 +00:00
Michael Graff 439c0011e6 snapshot 1999-10-08 23:12:21 +00:00
David Lawrence 9e0c6fc4c1 The return value of zone_delete is isc_reuslt_t, so compare with ISC_R_SUCCESS,
not with NULL.

Do not need string.h, because confcommon.h includes it.
Ditto isc/net.h.

Do not need sys/types.h.
1999-10-08 23:12:00 +00:00
David Lawrence 14981f88a2 Use ISC_DIR_PATHMAX for PATH_MAX.
Cast argument to htons() to isc_uint16_t to delint NT's CL.  It is range
checked before the call.
1999-10-08 23:05:00 +00:00
David Lawrence 53bd3f325f gen-unix.h, gen-win32.h:
platform-specific handling of option parsing and directory iteration.

gen.c:
  use gen-unix.h/gen-win32.h
1999-10-08 22:57:20 +00:00
David Lawrence 5e7e5134a9 dns_c_logginglist_addcategory() 4th arg is isc_boolean_t, not isc_boolean_t * 1999-10-08 22:55:33 +00:00
David Lawrence e97301448d no need for arpa/nameser.h
needs string.h to prototype frequent use of memset()
1999-10-08 22:52:59 +00:00
David Lawrence 65f7626dff cast int arguments to isc_buffer_putuint{16,32} to appropriate size.
they are already masked out of a 64 bit int to the correct size, but
NT's CL is Unaware.
1999-10-08 22:48:13 +00:00
David Lawrence 793213e886 assign char prefixlen from token.value.as_char, not token.value_.as_ulong.
it has already been checked for range.
1999-10-08 22:46:28 +00:00
David Lawrence 432b589972 does not need sys/param.h 1999-10-08 22:32:51 +00:00
David Lawrence 6a79959258 explicitly cast return value of dst_s_id_calc to uint16. the return value
is already masked to 16 bits but the compiler is not smart enough to know
that there is no loss of precision.
1999-10-08 22:27:00 +00:00
David Lawrence 54e9edb759 use ISC_DIR_NAMEMAX instead of PATH_MAX.
There is still an unportable chmod() in here, which for now is
just elided when building on NT.  A Better Way will be made.
1999-10-08 22:25:14 +00:00
David Lawrence 589064803f use ISC_DIR_NAMEMAX instead of PATH_MAX.
cast isc_buffer_putuint{8,16} integers to appropritate size.  nearly all
are clearly masked to the correct size at the location of the call, so
it is just delinting the "conversion supplied" warnings from NT's CL.
1999-10-08 22:24:06 +00:00
David Lawrence 85053e2af8 does not need unistd.h
cast integer arg to isc_buffer_putuint{8,16} to appropriate size.  the
value was already checked for suitable range so casting occurs without
loss of precision.
1999-10-08 22:14:24 +00:00
David Lawrence 0e64f7883a define THIRTY_TWO_BIT instead of SIXTY_FOUR_BIT on WIN32. Since
this file is already heavily ifdef'd with WIN32, one more seemed like
the most reasonable way to handle the matter.
1999-10-08 22:01:05 +00:00
David Lawrence 25ebcfe710 fixed some string manipulation that was aesthetically unpleasing to me.
it must have been the percocet that made me do it the other way.  sorry.
1999-10-08 21:55:31 +00:00