2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

314 Commits

Author SHA1 Message Date
Andreas Gustafsson
d5874af5a5 removed avoid_bitstring feature from the ADB 2001-01-22 22:51:23 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
58cbc05eb0 Fix memory leak in dns_view_find; return DNS_R_HINTNXRRSET instead of
DNS_R_NOTFOUND when correct to do so.
2000-12-20 23:31:11 +00:00
Brian Wellington
13090db2b1 dns_view_find can now do ANY queries; it takes additional db and node
parameters used for return values.
2000-12-20 03:38:46 +00:00
Andreas Gustafsson
5fca48054b dump the ADB in a more user-friendly format (unless a debug flag is set) 2000-12-18 20:03:33 +00:00
Andreas Gustafsson
acea06c80c spelling 2000-12-15 21:06:00 +00:00
Andreas Gustafsson
f58cfa95f7 comment formatting 2000-11-11 02:14:25 +00:00
Mark Andrews
368b37b616 dns_rdata_invalidate -> dns_rdata_reset 2000-10-31 03:22:05 +00:00
Mark Andrews
c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews
5e589b5356 Uninitalised link fixes, batch 1. 2000-10-20 02:21:58 +00:00
Brian Wellington
d1cbf71409 clean up suspicious looking and incorrect uses of dns_name_fromregion 2000-10-07 00:09:28 +00:00
Andreas Gustafsson
6bd179ea9a removed empty line at beginning of file 2000-09-29 23:54:31 +00:00
Andreas Gustafsson
f20c9d340a fixed a typo in a comment, expanded another 2000-09-29 23:53:05 +00:00
Michael Graff
e1db5e817f ask the database for aaaa records too, when an a6 isn't found. 2000-09-26 22:28:55 +00:00
Michael Graff
7da0286b54 get rid of isc_random_t -- use a wrapper around rand() instead that doesn't do as much work. Also, implement isc_random_jitter(), used to generate a value between a min, max, with a provided jitter value. 2000-09-06 02:40:00 +00:00
Michael Graff
306a935305 add find->result_v[46] 2000-08-26 02:21:45 +00:00
Brian Wellington
5e387b9ce6 and more calls to DESTROYLOCK 2000-08-26 01:37:00 +00:00
Andreas Gustafsson
e02884167b use the UNUSED() macro 2000-08-11 16:47:33 +00:00
Brian Wellington
8b858da2bb An error message was printing a result code as a number, not a string. 2000-08-09 21:15:32 +00:00
Andreas Gustafsson
e605e98f3e use DNS_NAME_MAXTEXT/DNS_NAME_FORMATSIZE 2000-08-09 00:09:36 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Andreas Gustafsson
8ed2c82a73 do not use initial caps in log messages 2000-06-16 15:51:58 +00:00
Michael Graff
9282e3c21a don't periodically dump the database. I think we're debugged enough by now. 2000-06-08 01:43:21 +00:00
Michael Graff
a14eb88840 clamp ttls in the adb to be 10 < ttl < 86400, that is, 10 seconds minimum and 24 hours max 2000-06-07 20:15:48 +00:00
David Lawrence
6d12fdf966 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.

rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.

Some minor integer-compatibility issues.  (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast.  The type of an
enum member is int, so there are some conversion issues there, too.)

A pointers-to-function should not be cast to a pointer-to-object.

Variables should not be named for C reserved identifiers.

One or two set-but-not-used variables removed.

Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Michael Graff
d98c74e2ec set the default destination port in the view, and use it when returning addresses from the adb. 2000-06-01 00:30:58 +00:00
Andreas Gustafsson
bf16dd5997 use dns_name_format() 2000-05-26 16:12:30 +00:00
Michael Graff
bd81a43c73 drop ::1.2.3.4 and ::ffff:1.2.3.4 in the resolver, not the adb. 2000-05-26 02:16:10 +00:00
Michael Graff
7c82f6f2e3 Print the actual ipv4-in-ipv6 mapped address we ignore when we ignore it. 2000-05-25 21:08:06 +00:00
David Lawrence
c6715d2315 Silence IRIX warnings:
"adb.c", line 2042: remark(1552): variable "result" was set but never used
        isc_result_t result;
                     ^

"adb.c", line 3082: warning(1185): enumerated type mixed with another type
                               NAME_GLUEOK(adbname), NAME_HINTOK(adbname),
                                                     ^

"adb.c", line 3187: warning(1185): enumerated type mixed with another type
                               now, NAME_GLUEOK(adbname), NAME_HINTOK(adbname),

Note that the first is in timer_cleanup, a function returning void in a context
that can't do anything with something other than void (as an isc_taskaction_t).
It calls isc_timer_reset, which could conceivably return ISC_R_NOMEMORY or
ISC_R_UNEXPECTED.  For now the call has been cast to void, but someone
who knows the code better should have a look and see whether something more
intelligent could be done with an error (and, if not, remove my XXX and
make sure the comment is clear as to why ignoring the return is the
best that can be done).
2000-05-13 20:15:16 +00:00
David Lawrence
6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence
64574939c4 Removed useless third parameter to MPINIT macro which was always true,
because it was causing HP/UX to barf up eight lines of:

cc: "adb.c", line 2219: warning 509: Condition always evaluates to true: If clause will always be executed.
2000-05-08 18:47:02 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence
6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Michael Graff
acafce24bb bump up free list and fill count for items. We're thrashing somewhat. 2000-04-19 17:48:25 +00:00
Mark Andrews
9b8057fce9 Add dns_adb_attach(). 2000-04-18 08:18:52 +00:00
Michael Graff
e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley
738b9aa3de isc_task_create() API change 2000-04-12 01:41:21 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Michael Graff
419dd7129f clean 1 bucket every N seconds, or M buckets every 1 seconds. Also, decay goodness 2000-02-18 03:53:00 +00:00
Michael Graff
c50f9f4103 clean up a bit of old code 2000-02-16 01:49:11 +00:00
Michael Graff
69a7905cf3 return 'avoid_bitstring' in dns_adbaddrinfo_t. If non-zero, the timer hasn't expired.
This means we need to pass 'now' into dns_adb_findaddrinfo() as well, to filter
out timers that have expired.
2000-02-16 00:16:36 +00:00
Bob Halley
eafe61bee8 The DNS_ADBFIND_STARTATROOT wasn't working. 2000-02-12 02:19:53 +00:00
Bob Halley
9e89140c97 fix clamping problem for maximally bad goodness 2000-02-11 02:58:44 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Michael Graff
ffd9f87970 s/IGNORELAME/RETURNLAME/g 2000-02-02 23:27:39 +00:00
Michael Graff
1a0e33bc20 implement DNS_ADBFIND_GLUEOK, DNS_ADBFIND_HINTOK, and DNS_ADBFIND_IGNORELAME 2000-02-02 23:24:04 +00:00