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

222 Commits

Author SHA1 Message Date
Brian Wellington
af60263664 Added dns_tsigkey_attach & _detach, to simplify reference counting.
Added dns_message_get/settsigkey to deuglify tsig key handling in message code.
2000-05-26 00:16:46 +00:00
Andreas Gustafsson
52b784e2a6 log warning message about out-of-zone data in zone transfers
instead of ignoring it silently
2000-05-18 16:49:54 +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
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
David Lawrence
f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +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
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
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
e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Andreas Gustafsson
5646eb8cd1 use dns_name_format() 2000-04-11 19:08:32 +00:00
Brian Wellington
17e81b39cd TSIG signed incoming zone transfer works now. 2000-04-08 04:42:42 +00:00
Andreas Gustafsson
edcb93b49c wired up view options: request-ixfr, provide-ixfr 2000-04-07 22:30:43 +00:00
Andreas Gustafsson
a25310fd1d if the first RR in an incoming zone transfer was not an SOA,
we got an assertion failure
2000-04-07 19:41:07 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Andreas Gustafsson
ced0a4548a quote zone name in log messages to be consistent with
outgoing transfers
2000-04-04 19:22:07 +00:00
Bob Halley
f1e96dc67f ignore out-of-zone data 2000-03-29 21:01:30 +00:00
Andreas Gustafsson
4c2ed12aaa don't access freed memory when shutting down
zone transfer (RT #82); added magic number (patch by Bob); 80 columns
2000-03-29 05:03:07 +00:00
Brian Wellington
d497aeb8cf The TSIG pseudosection should not be explicitly rendered. 2000-03-28 03:18:02 +00:00
Andreas Gustafsson
a54b377fd3 log a message saying whether an incoming zone transfer is
incremental or not
2000-03-20 21:07:48 +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
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
c011a69280 implemented the 'support-ixfr' clause of the 'server' statement 2000-02-24 21:47:46 +00:00
Andreas Gustafsson
cf755281df typos in comments 2000-02-15 20:05:37 +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
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Mark Andrews
83e592bfba missing static 2000-02-02 01:01:24 +00:00
Andreas Gustafsson
f8b42037da obey the max-transfer-idle-in options 2000-01-31 22:55:04 +00:00
Andreas Gustafsson
c718c8aa60 separate transfer-source addresses for IPv4 and IPv6 2000-01-31 18:00:07 +00:00
David Lawrence
697de685e1 In xfrin_logv, do not omit the final dot of the zone name if the zone
name is dns_rootname.
2000-01-31 15:10:29 +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
Andreas Gustafsson
4b887af619 obey the transfer-source option of the zone 2000-01-28 01:12:01 +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
ada4d10c44 fail gracefully if task creation fails 2000-01-17 23:54:05 +00:00
Mark Andrews
60f0c36b17 Reposition call back to capture both successful IXFR's as well as AXFR's. 1999-12-24 00:44:59 +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
Michael Graff
733b16eb0b priority rendering 1999-12-22 03:22:59 +00:00
Mark Andrews
4bb1729d24 dns_zone_getxfrtime -> dns_zone_getmaxxfrin 1999-12-13 07:57:36 +00:00
Mark Andrews
0b87eaccdb Add callback when xfrin completes/fails.
Perform a SOA serial upto date check when IXFR attempt fails.
1999-12-13 03:01:53 +00:00
Andreas Gustafsson
d1422e0bda don't print bogus number of received bytes at end of transfer 1999-12-06 18:00:31 +00:00
Andreas Gustafsson
35b22d104a new cleanup strategy to handle timeouts correctly 1999-12-02 22:33:15 +00:00
Andreas Gustafsson
67b32ad707 removed embedded newline from log message 1999-12-02 05:11:28 +00:00
Andreas Gustafsson
cd36fa7eb9 obey the max-transfer-time-in option;
do not include zone.h twice
1999-12-01 03:55:22 +00:00
Bob Halley
9779deddba Include <isc/print.h>, so that vsnprintf can be used.
Fix typo and eliminate type warning with isc_buffer_putmem().
1999-10-31 00:02:31 +00:00
Andreas Gustafsson
1affefab31 print zone transfer begin/end messages at same level 1999-10-30 01:23:45 +00:00
Andreas Gustafsson
5862cce82b print the zone name and master address+port when logging 1999-10-30 01:08:52 +00:00
Andreas Gustafsson
63bb6b854b use the logging library, not printf;
sorted dns includes
1999-10-29 22:42:44 +00:00
Mark Andrews
fe37278859 in6_addr.s6_addr is *always* an array. 1999-10-29 06:36:05 +00:00