2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

471 Commits

Author SHA1 Message Date
Andreas Gustafsson
be8d4578da zone_xferdone() assigned the updated zone expiry time to the wrong variable
zone->expire instead of zone->expiretime.  This left zone->expiretime
with a value of zero, causing zone_settimer() to get horribly confused
and set the timer to the inactive state (!).  This in turn caused
notify-driven refreshes (and probably other timer-scheduled events, too)
to never happen.
2000-05-20 21:24:41 +00:00
Michael Graff
19591ace46 reload zone housekeeping information on AXFR/IXFR 2000-05-20 01:32:46 +00:00
Mark Andrews
a2fad0f37c Convert to use dns_rdata_tostruct(,,mctx = NULL) where appropriate.
Set initial expire based on file mode time.  We can expire when not
running.
2000-05-19 02:18:40 +00:00
Mark Andrews
1aae402fc3 187. [func] isc_ratelimter_enqueue() has an additional arguement
'task'.

 checkpoint zone maintence / notify work.
2000-05-18 04:43:00 +00:00
Mark Andrews
59abb512d3 186 [func] dns_request_getresponse() has an additional arguement
'preserve_order'.
2000-05-18 02:59:20 +00:00
Andreas Gustafsson
22608315e8 Fixed multiple shutdown cleanup bugs in the zone object. This
involved extensive restructuring of the reference counting of
zones and related objects.

Zones now attach to their views.  To avoid a circular dependency that
would keep views from ever shutting down, this is done using the new
functions dns_view_weakattach() / dns_view_weakdetach() which
guarantee that the view will not be freed but still allow it
to be shut down.

The zones themselves now only have a single reference count, with
similar "weak" semantics.  Managed zones must now be shut down
explicitly by calling dns_zone_shutdown().  To shut down all
zones in a zone table, call dns_zt_shutdown().

The zone manager is now reference counted, weakly. To shut down the
zone manager, you must explicitly call dns_zonemgr_shutdown().
2000-05-17 19:45:36 +00:00
Andreas Gustafsson
8d6794a163 removed #ifdef'ed-out function dns_zone_manage() 2000-05-14 23:23:37 +00:00
Andreas Gustafsson
bbf6673828 use isc_sockaddr_format() instead of a static function doing
the same thing
2000-05-14 20:52:35 +00:00
Andreas Gustafsson
f7d85bae58 Keep a queue of zones waiting for zone transfer quota so that a new
transfer can be dispatched immediately whenever quota becomes available
2000-05-14 20:01:34 +00:00
Mark Andrews
902acbaefc notify checkpoint 2000-05-12 10:21:06 +00:00
Mark Andrews
8adf1b9e74 Checkpoint ratelimiting refresh queries and notifies.
170.   [cleanup]       Remove inter server consistancy checks from zone,
                        these should return as a seperate module in 9.1.
                        dns_zone_checkservers(), dns_zone_checkparents(),
                        dns_zone_checkchildren(), dns_zone_checkglue().

                        Remove dns_zone_setadb(), dns_zone_setresolver(),
                        dns_zone_setrequestmgr() these should now be found
                        via the view.
2000-05-11 10:04:59 +00:00
Michael Graff
65c21f5f73 get rid of a newline in a log message and minor formatting issue (line > 80 chars) 2000-05-11 02:06:18 +00:00
Michael Graff
4cfd0c3960 make magic numbers be the first things in the structures 2000-05-11 00:03:58 +00:00
Mark Andrews
f4f3f2cf34 167. [bug] Make lack of masters for a slave zone a soft error. 2000-05-10 21:51:17 +00:00
Mark Andrews
25d161ae43 Log failures to dump the zone file.
Clear DNS_FLAG_Z_NEEDDUMP after successfully dumping the zone.
2000-05-10 04:47:03 +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
Mark Andrews
598b67856b dns_zone_{set,get}masterport() is gone. 2000-04-28 17:18:23 +00:00
Mark Andrews
6c7e680943 115. [cleanup] libdns.a changes:
dns_zone_clearnotify() and dns_zone_addnotify()
                        are replaced by dns_zone_setnotifyalso().
                        dns_zone_clearmasters() and dns_zone_addmaster()
                        are replaced by dns_zone_setmasters().
2000-04-28 00:58:42 +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
Andreas Gustafsson
8db70f36be isc_buffer_putstr() will soon return void 2000-04-26 18:24:15 +00:00
David Lawrence
26037ecb22 Unlock zone->lock when skipping zone load because of database file's age.
Log at ISC_LOG_DEBUG(1) when dns_zone_load is entered, when it skips
loading because the file is older than the last load time, and when it
has successfully loaded the zone.
2000-04-24 23:30:46 +00:00
David Lawrence
1e44dac496 Use renamed functions, isc_mktemplate -> isc_file_mktemplate and
isc_ufile -> isc_file_ufile.

Don't load a zone if the database file for it is older than the last
time the zone was loaded.

Style lint.
2000-04-24 21:59:08 +00:00
Mark Andrews
821c5a2700 Cleanup *before* calling dns_zone_transfer_in(). 2000-04-19 22:21:22 +00:00
Mark Andrews
158ade3c6f Don't notify the master server. 2000-04-19 05:17:12 +00:00
Mark Andrews
8400fbd5c6 Fix locking problem w/ notify.
'next' was sometimes overwritten when it should not have been
causing NEEDNOTIFY to be effectivly ignored.
2000-04-19 02:07:03 +00:00
Andreas Gustafsson
e0a43acbb7 disable notify code until locking bug is fixed 2000-04-18 20:30:47 +00:00
Mark Andrews
9e53cbca72 Add UDP refresh queries.
Generate NOTIFY messages.
2000-04-18 11:43:46 +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
Andreas Gustafsson
edcb93b49c wired up view options: request-ixfr, provide-ixfr 2000-04-07 22:30:43 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Bob Halley
0218c433f6 dns_zone_notifyreceive() failed to unlock the zone lock in certain
error cases.
2000-04-04 19:21:23 +00:00
Mark Andrews
7201d2e11b Unconditionally set the zone timer in xfrdone. 2000-03-21 00:17:15 +00:00
Andreas Gustafsson
4bc5101166 wired up the new 'request-ixfr' option 2000-03-20 19:42:21 +00:00
Andreas Gustafsson
2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Brian Wellington
6fcfd0c35d ssutables are now attached/detached; zones get ssutables from config structs 2000-03-06 19:06:07 +00:00
Andreas Gustafsson
cfab2f4e03 implemented the 'transfers-in' option 2000-02-25 17:34:05 +00:00
Andreas Gustafsson
e01ecff4b1 Implemented the 'transfers' clause of the 'server' statement
> and the 'transfers-per-ns' option.
2000-02-25 00:52:11 +00:00
Andreas Gustafsson
6e70b15670 zones now know which view they are in 2000-02-24 21:40:54 +00:00
Brian Wellington
9fae7ff638 dns_zone_getssutable/dns_zone_setssutable 2000-02-16 16:37:55 +00:00
James Brister
269d5ca1c7 Example usage of ondestroy notification for databases. Is ifdef'd out. 2000-02-10 16:13:12 +00:00
Andreas Gustafsson
da0ecdd70c zone shutdown rewritten to use separate internal/
external refcount and control event instead of onshutdown,
to fix bug where zone could be freed before being shut down
(RT #28)
2000-02-10 01:12:15 +00:00
Andreas Gustafsson
4d5520682b support IPv6 masters in zone transfers 2000-02-09 19:04:04 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Andreas Gustafsson
87fe131e60 include <isc/mktemplate.h> and <isc/ufile.h> 2000-01-31 18:05:13 +00:00
Andreas Gustafsson
c718c8aa60 separate transfer-source addresses for IPv4 and IPv6 2000-01-31 18:00:07 +00:00
Mark Andrews
d718d8e129 Use a tmp file to dump the zone to so that we don't destroy the current
version unless we have successfully written to disk.
2000-01-31 07:45:18 +00:00
Mark Andrews
9ec46fafd6 Missed include file 2000-01-31 02:37:58 +00:00
Mark Andrews
89ab345002 dns_zone_dump() -> dns_zone_dumptostream()
replace seperate iteration of zone in dns_zone_dumptostream() with call
to dns_master_dumptostream().
dns_zone_dume() now dumps to database specified in zone.
2000-01-31 02:11:50 +00:00