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

452 Commits

Author SHA1 Message Date
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
Andreas Gustafsson
897ba5e120 Abort incoming zone transfers on server shutdown. To support
this, zone transfers now use the zone's task, the zone holds a pointer
to any zone transfer in progress, and the zone now registers a shutdown
callback.
2000-01-28 23:48:58 +00:00
Brian Wellington
3b2e285a16 dns_zone_dump() was returning DNS_R_NOMORE when the dump succeeded - should
check for this and return DNS_R_SUCCESS.
2000-01-28 16:10:47 +00:00
Andreas Gustafsson
6d39d25c55 set configuration lock quotas to 1 2000-01-27 21:20:32 +00:00
Andreas Gustafsson
94a3e829e0 added "transfersin" quota variable in zone manager;
use dns_severity_t, not dns_c_severity_t to represent name checking
severities, to eliminate the final dependency on dns/config code
2000-01-27 19:44:49 +00:00
Andreas Gustafsson
6f5ad8833c don't treat missing slave zone file as error when starting up 2000-01-27 01:35:17 +00:00
Andreas Gustafsson
057cedf6b5 fix double free introduced by previous change 2000-01-27 01:07:17 +00:00
Andreas Gustafsson
143c2d39fa configuration locking checkpoint 2000-01-27 01:00:16 +00:00
Andreas Gustafsson
a820cd51ec removed 'pubkey' from the zone object; if we decide it is
actually needed, it should be restored but as a dns_pubkey_t,
not dns_c_pubkey_t.
2000-01-27 00:44:56 +00:00
Bob Halley
6bfaefc3fd change some logging from INFO to DEBUG 2000-01-26 21:12:04 +00:00
Bob Halley
e485d16462 name tasks 2000-01-25 19:31:23 +00:00
Andreas Gustafsson
9f27c51315 iresult -> result 2000-01-24 23:10:19 +00:00
Andreas Gustafsson
4380033dc4 dns_zone_manage() has been superseded by dns_zonemgr_managezone();
made dns_zone_manage() static so that it cannot be called by mistake
2000-01-21 19:52:03 +00:00
Andreas Gustafsson
395130717a dns_zone_setorigin() now takes a dns_name_t *, not a char * 2000-01-21 19:21:14 +00:00
Bob Halley
7fc55ea79f conform to resolver api changes 2000-01-21 02:48:28 +00:00
Andreas Gustafsson
35503b8753 needs #include <dns/log.h> 2000-01-20 01:13:42 +00:00
Andreas Gustafsson
ea80934b58 make sure zone manager is not destroyed until tasks have finished;
eliminated 'soaquery' struct
2000-01-19 22:01:57 +00:00
Bob Halley
c1b5b02f55 settimer logging tweaks 2000-01-06 23:33:20 +00:00
Mark Andrews
9fd735a3d9 xfrin_start_temporary_kludge() was called when the zone was already locked.
DNS_ZONE_F_REFRESH needs to be set when we call xfrin_start_temporary_kludge()
from xfrdone().
1999-12-31 00:20:47 +00:00
Michael Graff
3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00