2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-26 20:17:35 +00:00

385 Commits

Author SHA1 Message Date
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
Michael Graff
02a0f2f083 when we find a CNAME/DNAME, set the result code to DNS_R_ALIAS, so it will
be caught properly in createfind()
2000-01-28 00:32:32 +00:00
Michael Graff
5a675fa40a always set find->query_pending correctly 2000-01-27 02:14:53 +00:00
Bob Halley
e485d16462 name tasks 2000-01-25 19:31:23 +00:00
Bob Halley
97a274369d edns_level was not being initialized. 2000-01-22 00:26:57 +00:00
Bob Halley
fe197676cc handle CNAME/DNAME results from A6 fetches 2000-01-22 00:19:55 +00:00
Bob Halley
4abed3e356 CNAME/DNAME chaining (initial support; A6 still missing) 2000-01-21 02:50:27 +00:00
Mark Andrews
058eeac210 add limits.h for INT_MAX 2000-01-21 02:13:38 +00:00
Bob Halley
fd1c538c9d fix typo 2000-01-19 02:28:48 +00:00
Bob Halley
16508d9185 Lower cache minimum time to 10 seconds. Enforce the minimum.
Preliminary support for the "target" attribute of the adbname, to be used
for CNAME/DNAME chains later on.
The resolver will now do appropriate findzonecut calls, so the ADB need
not concern itself with them any more.
Fix some bugs in NXDOMAIN/NXRRSET handling.
2000-01-19 01:43:58 +00:00
Bob Halley
daf83a2937 Use dns_view_simplefind().
Handle the NXDOMAIN and NXRRSET cases, so we don't start fetches for
data we're authoritative for.
2000-01-15 00:45:49 +00:00
Bob Halley
45dadd25ba we sometimes were not decrementing irefcnt 2000-01-13 20:42:43 +00:00
Andreas Gustafsson
2d083fead2 incorrect function name in debug tracing output 2000-01-13 18:58:01 +00:00
Bob Halley
fbc09123cd shutdown_entries() was erroneously unlocking the wrong lock. 2000-01-12 22:22:20 +00:00
Bob Halley
a44c12b332 add dns_adb_findaddrinfo() and dns_adb_freeaddrinfo() 2000-01-12 03:00:33 +00:00
Bob Halley
24a2d84aed add DNS_ADBFIND_STARTATROOT 2000-01-06 00:56:37 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00
Michael Graff
440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Bob Halley
4a3ad0da97 IPv6 query flood suppression 1999-12-14 00:10:06 +00:00
Michael Graff
d947011dc3 change macro name from ADB_NCACHE_MINIMUM to ADB_CACHE_MINIMUM since it's used
as a general purpose minimum ttl, and actually set the TTL to the minimum
when re get a negative cache entry.
1999-12-11 02:30:24 +00:00
Michael Graff
a44bd6a6ed Unlock the right bucket in the race condition avoidance case 1999-12-10 23:22:13 +00:00
Michael Graff
f6f4ceece4 more fully implement the 'standard' in6_addr, and use the macros correctly
in adb.c
1999-12-02 23:45:30 +00:00
Michael Graff
6a0f1e6b61 Make a (perhaps) temporary change to make this build on non-ipv6 aware
OSs.  It may remain (but not in the present form) since storing ipv6
addresses in the adb makes little sense if you can't use them...
1999-12-02 04:20:00 +00:00
Michael Graff
3115cd89bc Ignore ipv6 mapped ipv4 addresses.
Set a default TTL for type 3 negative cache elements.  This is local to
the ADB, and cannot leak to clients, so no specs are violated.

Change a logging level to be less verbose.
1999-12-01 02:05:16 +00:00
Bob Halley
8cdfd17426 review checkpoint 1999-11-25 01:23:32 +00:00
Michael Graff
294802790e Fix a lot of negative caching issues. I believe the code will use
ncache responses from fetches and database lookups correctly now, but
there needs to be a little more cleanup here and there.  Bugs exist.
1999-11-24 19:23:27 +00:00
Bob Halley
875e88e734 move some debugging output from level 1 to level 3 1999-11-23 20:52:34 +00:00
Bob Halley
59c049874b revise shutdown process; a6 chain expiration 1999-11-22 19:57:58 +00:00
Michael Graff
42fe494186 Minor API change. The 'factor' now ranges from 0..10. See adb.h for details. 1999-11-19 00:30:13 +00:00
Bob Halley
70b065bd92 bits was being ORed with the mask instead of ANDed.
Update the entry's flags too.
1999-11-16 21:04:18 +00:00