Commit graph

2051 commits

Author SHA1 Message Date
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
Andreas Gustafsson
4831695ebe no need to include <isc/netaddr.h> to get in_port_t; <isc/net.h> suffices 2000-06-01 16:40:23 +00:00
Brian Wellington
2321de58e5 Added #include <isc/netaddr.h>, since in_port_t wasn't defined. 2000-06-01 02:04:01 +00:00
Brian Wellington
7a97b7630f dns_message_gettsig/getsig0 cleanup 2000-06-01 01:30:55 +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
Brian Wellington
fe0e3c7707 Rename message->tsigset/querytsigset to tsig/querytsig. 2000-05-31 23:58:35 +00:00
Andreas Gustafsson
e6ec99f169 commented 2000-05-31 23:35:09 +00:00
James Brister
725a4773f5 Support also-notify and trusted-keys in a view statement.
Fixed error message when lexer couldn't open an input file.
2000-05-31 13:10:00 +00:00
Brian Wellington
0f80bfec68 The message code now has functions to manipulate TSIG and SIG(0), and the
callers use these functions.  Also a lot of TSIG cleanup.
2000-05-30 23:14:57 +00:00
Andreas Gustafsson
7cd4c3ddd1 The 'cache-ttl' and 'ncache-ttl' options now work 2000-05-26 23:17:56 +00:00
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
David Lawrence
82a30bf0a0 in dns_name_fromtext, REQUIRE() that the source buffer not have an
isc_buffer_remaininglength of 0.  this finds problems like isc_buffer_init
not followed by isc_buffer_add much sooner.

also, enforce the already documented contract requirements of needing
a valid source buffer and either a valid target buffer or a name
with a dedicated buffer.
2000-05-25 23:57:25 +00:00
Andreas Gustafsson
c885fad9b8 Wired up the view-specific 'key' statement. 2000-05-25 22:06:51 +00:00
Andreas Gustafsson
c6cdf39bb2 Removed the function dns_zone_validate(). It was unused,
undocumented, marked XXX, and buggy (it contained a switch
statement that compared an rdclass to a set of zone types).
2000-05-25 21:13:39 +00:00
Andreas Gustafsson
e6aae9483e removed code for hint, forward, and cache "zones" as those
no longer have zone objects associated with them
2000-05-25 21:07:43 +00:00
Andreas Gustafsson
c90b021ea3 renamed dns_zone_setnotifyalso() to dns_zone_setalsonotify(),
to be consistent with the name of the config file option
2000-05-25 15:34:26 +00:00
Brian Wellington
5d83b561ad Added dns_tsigrcode_totext/fromtext 2000-05-25 00:46:32 +00:00
Michael Sawyer
c7868e2262 Modify dns_message_totext, dns_message_sectiontotext,
dns_message_pseudosectiontotext to use bitfields instead of flags
2000-05-24 18:17:53 +00:00
Brian Wellington
19d1b1667d notify and zone soa queries are now tsig signed when appropriate. 2000-05-24 17:30:41 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence
94bd549175 updated comments with regards to chains and parent pointers, and added caveat
about what happens with "name" and "origin" parameters when a chain
points to ".".
2000-05-24 02:56:26 +00:00
Brian Wellington
41faaa9b35 If an incoming message contains a SIG(0), store the rdataset owner name
in the message structure, even though it should be the root.  Also,
return this name in dns_message_getsig0().
2000-05-23 23:35:54 +00:00
Mark Andrews
00b67c06b9 Add contract notes for dns_requestmgr_{attach,detach}(). 2000-05-23 00:11:45 +00:00
Michael Sawyer
1ed4ba5a1f Add pseudosection printing, and dns_message_pseudosectiontotext(). 2000-05-22 21:22:06 +00:00
Andreas Gustafsson
cd01c9716f Reintroduced separate internal/external reference counts for zones,
reversing part of the changes made on 2000/05/17.  Doing an explicit
zone shutdown on destruction of the zone table caused the zone to
be shut down prematurely on server reload when the zone table was
destroyed but the zone had already been attached to a new zone table.
An external reference count is needed to correctly handle this situation.
2000-05-22 17:23:15 +00:00
Mark Andrews
0103f42343 Add comment about requiring pointers to memory block to be NULL if the
corresponding length is 0, non-NULL otherwise.
2000-05-22 12:34:16 +00:00
Michael Graff
341323e0e7 move dns_db_getsoaserial() from journal.c to db.c 2000-05-20 01:32:03 +00:00
Michael Sawyer
9dca36b2ab Remove unused no_rdata_or_ttl flag from message_totext and message_sectiontotest routines. 2000-05-20 01:29:58 +00:00
Michael Graff
46993e1d9d Merge the mlg-20000518 branch onto the mainline. Change summary:
dns_dispatch_create() no longer exists.  dns_dispatch_createtcp()
	and dns_dispatch_getudp() are the replacements.  _createtcp() takes
	a bound, connected TCP socket, while _getudp() will search for
	a sharable UDP socket, and if found, attach to it and return a
	pointer to it.  If one is not found, it will create a udp socket,
	bind it to a supplied local address, and create a new dispatcher
	around it.

	dns_dispatch_remove{request,response}() no longer take the dispatch
	as an argument.

	query-source can now be set per view.

	The dispatch manager holds onto three memory pools, one for
	allocating dispatchers from, one for events, and one for
	requests/replies.  The free list on these pools is hard-coded,
	but set to 1024.  This keeps us from having to dig into the
	isc_mem_t the pools draw from as often.

	dns_resolver_create() and dns_view_createresolver() require that
	valid dispatchers be passed in; dispatchers are no longer created
	for the caller.
2000-05-19 21:46:46 +00:00
Brian Wellington
e49c834de8 Replaced dns_keynode_next by the more correct dns_keytable_findnextkeynode 2000-05-19 20:25:55 +00:00
Brian Wellington
ea14aa24aa added dns_keynode_next 2000-05-19 18:38:27 +00:00
James Brister
8977ab7ca0 Zone configuration validation is now done at end of config file parsing,
and before loading callbacks.
2000-05-18 23:20:21 +00:00
Mark Andrews
59abb512d3 186 [func] dns_request_getresponse() has an additional arguement
'preserve_order'.
2000-05-18 02:59:20 +00:00
Brian Wellington
2ee24549b3 Added DNS_R_NOTINSECURE 2000-05-18 01:42:40 +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
David Lawrence
34b394b43e DNS_R_RANGE -> ISC_R_RANGE 2000-05-15 21:14:38 +00:00
Michael Sawyer
c95a89b433 Added dns_message_sectiontotext() and dns_message_totext() functions. 2000-05-15 17:49:57 +00:00
James Brister
4932a54ed6 - options named.conf statement *must* now come before any zone or view
statements.

- Post-load of named.conf check verifies a slave zone has non-empty list
  of masters defined.

- New per-zone boolean:

	enable-zone yes | no ;

- intended to let a zone be disabled without having to comment out the
  entire zone statement.

- New global and per-view option:

	max-cache-ttl number

- New global and per-view option:

	addition-data internal | minimal | maximal;
2000-05-15 12:36:33 +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
Andreas Gustafsson
7c74a7745d comments for dns_zone_setmasters() and dns_zone_setnotify()
said they add to a list; this is no longer true, they now set the whole list
2000-05-13 17:54:37 +00:00
Andreas Gustafsson
e1f16346db validator must not indicate a validation failure by returning
ISC_R_NOTFOUND as that seriously confuses query_find().  Introduced new
result codes DNS_R_NOVALIDSIG and DNS_R_NOVALIDNXT to use instead.
2000-05-12 21:25:17 +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
b9c8f4378a Add address searching to dns_disptach_find(). 2000-05-11 07:33:17 +00:00
Michael Graff
202ea9ccee make magic numbers be the first things in the structures 2000-05-10 23:58:12 +00:00
Michael Graff
ca9739800f implement dns_dispatchmgr_t, replacing dns_dispatchlist_t. Use it throughout the library/server. 2000-05-10 21:34:50 +00:00
Michael Graff
bc892aec31 implement _find() 2000-05-10 17:26:23 +00:00
Michael Graff
abf30e12ba declare dns_dispatchlist_t here 2000-05-10 17:24:55 +00:00
Michael Graff
1cf2ee1ef0 snapshot; dispatch list stuff 2000-05-10 07:28:33 +00:00
Andreas Gustafsson
84fcfe530b new logging module DNS_LOGMODULE_MASTERDUMP 2000-05-09 23:31:12 +00:00
Mark Andrews
8b61d20120 convert TRACE -> logging: ISC_LOG_DEBUG(3) 2000-05-09 05:12:49 +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
James Brister
65c9645ca7 Support new 'database' statement in zone.
database "quoted-string";
2000-05-06 10:18:48 +00:00
Andreas Gustafsson
a726ac16b3 updated comments 2000-05-05 00:18:16 +00:00
Michael Graff
c90f5e8d1e Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext(). 2000-05-03 21:11:40 +00:00
Andreas Gustafsson
deb7afc49f documented the 'covers' argument of dns_ncache_add() 2000-05-03 21:08:14 +00:00
James Brister
e2cf9c2db3 support 'disabled' statement in zone config (causes
zone to be parsed and then ignored). Currently must
come after the 'type' clause.

support optional ports in masters and also-notify
statements:

	masters [ port xxx ] { y.y.y.y [ port zzz ] ; }

removed some unused arguments.

stop issuing some warnings about some features that
were not implemented, but now are.
2000-05-03 19:29:43 +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
b09983678f 145. [cleanup] Added <isc/lang.h> and ISC_LANG_BEGINDECLS/
ISC_LANG_ENDDECLS to header files that had function
                        prototypes, and removed it from those that did not.
2000-05-01 17:59:10 +00:00
David Lawrence
4be63b1fd8 144. [cleanup] libdns header files too numerous to name were made
to conform to the same style for multiple inclusion
                        protection.
2000-04-29 02:02:38 +00:00
Andreas Gustafsson
014892d86d added dns_rdatatype_isknown() 2000-04-29 01:49:37 +00:00
Michael Graff
20c266cbc9 add dispatcher logging functions 2000-04-29 00:45:26 +00:00
Mark Andrews
efd55ce62e Add mctx comment for tostruct. 2000-04-28 23:18:01 +00:00
Mark Andrews
598b67856b dns_zone_{set,get}masterport() is gone. 2000-04-28 17:18:23 +00:00
Bob Halley
80cff01698 rdata.h 2000-04-28 16:29:58 +00:00
Bob Halley
3ae5393d7e Update contract of dns_name_rdatacompare to return < 0, 0, > 0 instead of
-1, 0, 1.
2000-04-28 16:29:48 +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
b3e7753518 108. [cleanup] DNS_SETBIT/DNS_GETBIT/DNS_CLEARBIT moved from
<dns/types.h> to <dns/bit.h> and renamed to
                        DNS_BIT_SET/DNS_BIT_GET/DNS_BIT_CLEAR.
2000-04-27 22:26:50 +00:00
Bob Halley
bcaf544581 add macros 2000-04-27 21:45:46 +00:00
Brian Wellington
9e842bb2d3 Allow dnssec verifications to ignore the validity period. 2000-04-27 18:09:10 +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
Bob Halley
048f38385e change contract for value of order 2000-04-26 23:12:57 +00:00
Andreas Gustafsson
ad73ddc323 don't use 'new' as an identifier in installed
header files - it's a reserved word in C++
2000-04-26 01:01:23 +00:00
David Lawrence
8fedfa7b45 79. [cleanup] <dns/callbacks.h> does not need <stdio.h>. 2000-04-25 20:13:54 +00:00
David Lawrence
6d4b6f9d4b added dns_c_ndcctx_getserver, minor style lint 2000-04-24 22:53:41 +00:00
David Lawrence
69d9d317ae Add DNS_RBTFIND_NOOPTIONS to make it clear what the options parameter of
dns_rbt_find* is when no options are passed.

Add DNS_RBTFIND_NOPREDECESSOR to specify that the predecessor
searching code of dns_rbt_findnode should be skipped.

Much comment cleanup w.r.t. DNS_RBTFIND_* options.
2000-04-24 21:18:02 +00:00
Brian Wellington
ec371edc34 Add 'type' as a parameter to dns_validator_create() 2000-04-20 20:43:52 +00:00
Brian Wellington
e9a9ae4fc6 Added dns_trust_ultimate for zone data (can be renamed later if necessary). 2000-04-20 18:47:21 +00:00
Andreas Gustafsson
d1bdeae7bb moved typedef of dns_zone_callbackarg_t from <dns/types.h> to
bin/tests/zone2_test.c; it's obsolete and zone2_test.c is the only
place using it
2000-04-20 17:39:02 +00:00
Michael Graff
5007a32191 use unsigned int for bitfields, not isc_boolean_t 2000-04-19 22:47:24 +00:00
Brian Wellington
767b4086b1 dns_dnssec_verifymessage updates 2000-04-19 20:57:55 +00:00
Bob Halley
dded35f92d noexact support 2000-04-19 18:49:11 +00:00
Bob Halley
0a09237aa0 add noexact matching option 2000-04-19 18:21:24 +00:00
Brian Wellington
2e8e76e547 Added dns_keytable_finddeepestmatch() 2000-04-18 17:47:17 +00:00
Mark Andrews
9e53cbca72 Add UDP refresh queries.
Generate NOTIFY messages.
2000-04-18 11:43:46 +00:00
Mark Andrews
262e8ed36a Add DNS_EVENT_VIEWREQSHUTDOWN 2000-04-18 08:36:20 +00:00
Mark Andrews
1a1a2ad3e8 add dns_resolver_dispatchv4(), dns_resolver_dispatchv6() and
dns_resolver_socketmgr().
2000-04-18 08:30:24 +00:00
Mark Andrews
9b8057fce9 Add dns_adb_attach(). 2000-04-18 08:18:52 +00:00
Andreas Gustafsson
e3628581ae say that sigrdataset may be NULL 2000-04-17 23:13:50 +00:00
Andreas Gustafsson
a7b62db9ca commented validator API 2000-04-17 23:02: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
Michael Graff
7ec579cd5d Add functions to check that a type is only or is not allowed in a question section 2000-04-14 20:13:49 +00:00
Michael Graff
3bb3b7ac46 implement singleton type checking 2000-04-14 18:36:45 +00:00
Brian Wellington
53c892082e Added dns_nxt_typepresent() 2000-04-13 18:08:07 +00:00
David Lawrence
d3c34e76d6 Stole one bit from node's 'attributes' bitfield for 'is_root' boolean.
Prototyped and documented dns_rbt_deletenode.
2000-04-12 21:27:49 +00:00
David Lawrence
567f3a25bc do not include dns/rbt.h 2000-04-12 21:25:27 +00:00
Andreas Gustafsson
b4b4adc097 added convenience function dns_name_format() for use in formatting
log messages
2000-04-11 19:11:46 +00:00
Andreas Gustafsson
230bc05e7e added DNS_LOGCATEGORY_DNSSEC and DNS_LOGMODULE_VALIDATOR 2000-04-11 18:17:35 +00:00
Andreas Gustafsson
edcb93b49c wired up view options: request-ixfr, provide-ixfr 2000-04-07 22:30:43 +00:00
James Brister
6abdc5c090 Changes necessary to support server statements inside a view statement. 2000-04-07 17:40:43 +00:00
Brian Wellington
b80a8db9f9 Added DNS_EVENT_VALIDATORSTART 2000-04-07 17:15:35 +00:00
James Brister
616ee4a3f7 Changes to support keys inside views. 2000-04-07 13:35:06 +00:00
Michael Graff
6324997211 add attributes (line singleton, exlcusive, meta, etc) to rdata C files, and
build a table of them using gen.c.  This means the names are stored twice,
but that will change in the near future.  This will speed up number to text
conversions for rdatatypes, and I plan on speeding up text->number as
well, soon.
2000-04-07 03:54:52 +00:00
Andreas Gustafsson
a672bfbee4 wired up view options: allow-query, allow-recursion, allow-transfer 2000-04-06 23:59:19 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Michael Graff
c1a2cfef7f s/DNS_R_/ISC_R_/ change for some codes. Mostly documentation in these files. 2000-04-06 20:59:29 +00:00
Andreas Gustafsson
66e2dd5001 wired up view options: recursion, auth-nxdomain, transfer-format 2000-04-06 20:25:48 +00:00
James Brister
a38ea1c635 Change some accessor names. 2000-04-06 20:13:07 +00:00
David Lawrence
5d4f11b265 The RBT now maintains a parent pointer at each node. 2000-04-06 18:47:07 +00:00
James Brister
3a49917729 Support new optional class on a view declaration. 2000-04-06 10:35:27 +00:00
James Brister
5e3d37f84a Many new view-specific fields. 2000-04-06 09:50:13 +00:00
James Brister
03f18a3c14 Three new options fields: lame-ttl min-roots serial-queries. 2000-04-06 09:49:19 +00:00
Andreas Gustafsson
8c1616072e previous commit was by mistake, backed out 2000-04-05 20:49:29 +00:00
Andreas Gustafsson
76ec142174 added 'matchclients' field 2000-04-05 20:45:36 +00:00
Andreas Gustafsson
afd4b04898 need <dns/aclconf.h>, <dns/confctx.h>, <dns/confzone.h>;
removed obsolete comment
2000-04-05 17:37:34 +00:00
Andreas Gustafsson
024eb50b65 must not include <config.h> in installed headers 2000-04-05 17:36:36 +00:00
Andreas Gustafsson
f79476e131 need <dns/confzone.h> 2000-04-05 17:35:56 +00:00
Andreas Gustafsson
8293999117 HEADERS contained obsolete header confserv.h and was missing
peer.h
2000-04-05 17:30:02 +00:00
James Brister
300115d413 Replaced with peer.c and peer.h 2000-04-05 17:20:45 +00:00
James Brister
14256bd72e Removed include of config.h (illegal and unnecessary). 2000-04-05 16:38:01 +00:00
James Brister
ebafb8a02a match-clients support 2000-04-05 15:29:53 +00:00
James Brister
64da53037f Added misc 'unset' functions 2000-04-05 15:22:51 +00:00
Andreas Gustafsson
421f476fe8 requires <isc/stdtime.h> 2000-04-04 22:38:26 +00:00
Andreas Gustafsson
20abf4f676 ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS were
used needlessly and without including <isc/lang.h>
2000-04-04 21:25:36 +00:00
Andreas Gustafsson
c36e9ea3cd no need to #include <isc/buffer.h> 2000-04-04 20:11:54 +00:00
Andreas Gustafsson
e6e674f6a5 no need to include <isc/ondestroy.h> from <isc/mem.h> 2000-04-04 20:06:29 +00:00
James Brister
f2af22c3e0 - Provide routine to check all zone definitions. Currently just looking
for allow-update and update-policy being used together. allow-update
  definition is removed in this case.
- Provide zonelist iterator functions.
2000-03-30 17:21:16 +00:00
Bob Halley
18a4aa1dc8 Add dns_name_dupwithoffsets(). 2000-03-30 00:57:23 +00:00
James Brister
3cfa5fedfe Replace bit-setting method for determining if a config file field was set.
Templatized(?) code with macros.
2000-03-29 15:01:14 +00:00
Brian Wellington
5caab9f99d TSIG and SIG(0) are no longer message pseudosections. 2000-03-29 01:32:22 +00:00
James Brister
da47a1b896 Removed listen-on from views.
Changed syntax of grant/deny statements so they now must be inside an
'update-policy' block.

quote rr types when printing grant/deny statements as they can
clash with config file keywords.

Added rcs Id inside comment.
2000-03-28 22:58:25 +00:00
Bob Halley
dda4bfe649 update copyrights 2000-03-23 19:52:19 +00:00
David Lawrence
ecb6c5782e exorcized local compression 2000-03-23 05:18:46 +00:00
Andreas Gustafsson
5fe5a0c026 revised logging categories 2000-03-23 00:55:12 +00:00
Andreas Gustafsson
4bc5101166 wired up the new 'request-ixfr' option 2000-03-20 19:42:21 +00:00
Mark Andrews
afbc024820 Add DNS_R_USETCP. 2000-03-20 12:26:32 +00:00
Mark Andrews
48df229b7b Add request/requestmgr support. 2000-03-20 12:25:48 +00:00
Mark Andrews
78da321b43 checkpoint 2000-03-20 12:22:02 +00:00
James Brister
5475a2d296 Support request-ixfr and provide-ixfr values in options and server
statements.
2000-03-19 02:58:15 +00:00
Bob Halley
7457bbd82f secroots is now a keytable; add trustedkeys keytable 2000-03-17 00:00:18 +00:00
James Brister
c0536aa152 ndc config parser and test program 2000-03-15 02:11:57 +00:00
Michael Graff
ae8d0aedd6 implement pktinfo through dispatcher -> named client 2000-03-14 03:30:52 +00:00
Brian Wellington
f7fbd68b1c added msg.verify_attempted, renamed msg.verify_sig0 to verify_sig 2000-03-13 19:27:35 +00:00
James Brister
0e858455d8 Make sure ssuauth table only goes in master zones. 2000-03-07 21:16:38 +00:00
Brian Wellington
6fcfd0c35d ssutables are now attached/detached; zones get ssutables from config structs 2000-03-06 19:06:07 +00:00
James Brister
9ecccc109a Code removal. 2000-03-02 20:43:16 +00:00
James Brister
e0c4b53b70 Add dns_ssutable_t to zone. 2000-03-02 20:42:56 +00:00
James Brister
10529b4cd4 Add peer and peerlist printing prototypes. 2000-03-02 20:42:32 +00:00
Brian Wellington
9c8bd3184c commented the accessors/iterators 2000-03-02 16:04:41 +00:00
James Brister
f8b167ffb9 SUe strgings instead of dns_c_category_t.
Removed dns_c_logginglist_catbytype().
2000-03-02 04:00:00 +00:00
James Brister
c0d8bb424c Use strings instead of dns_c_category_t. 2000-03-02 03:59:22 +00:00
James Brister
7716a94ffb Drop prototypes of dns_c_category2string and dns_c_string2category.
Added dns_c_checkcategory prototype (checks string against predefined
category names).
2000-03-02 03:58:50 +00:00
Brian Wellington
2fabf91e5b Added a rule iterator and rule accessor functions 2000-03-01 23:28:31 +00:00
Brian Wellington
408ebaeec9 Added dns_ssurule_t 2000-03-01 23:27:15 +00:00
David Lawrence
edcd1247ad isc_log_create now has three parameters, the additional one used to
return an isc_logconfig_t.  isc_log_cretechannel and isc_log_usechannel
now take an isc_logconfig_t instead of an isc_log_t; this is to address
reconfiguration in a multithreaded environment.

isc_logconfig_create, isc_logconfig_get, isc_logconfig_use and
isc_logconfig_destroy were added to work with the new isc_logconfig_t type.

isc_logregister_categories and dns_log_init are now both void rather than
returning isc_result_t.
2000-02-26 19:57:02 +00:00
Bob Halley
453603c018 add dns_name_depth() and dns_name_splitatdepth() 2000-02-25 01:06:54 +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
Bob Halley
e419f613d8 checkpoint 2000-02-24 22:40:55 +00:00
Andreas Gustafsson
6e70b15670 zones now know which view they are in 2000-02-24 21:40:54 +00:00
Andreas Gustafsson
03ccfda9ec the view now has a peer list 2000-02-24 21:12:16 +00:00
Bob Halley
b91bbbcdb4 add ordering attributes 2000-02-24 21:07:28 +00:00
Bob Halley
435abcf2e2 add dns_message_renderreset() 2000-02-24 19:37:28 +00:00
Andreas Gustafsson
4777bac498 moved dns_peer_t and dns_peerlist_t typedefs to <dns/types.h> 2000-02-24 18:45:02 +00:00
James Brister
e323a667e0 Replace use of private config type user for server statement with new
dns_peer_t.
Support two forms of server key statement:

	keys "blah";
	keys { "foo" ; };

Non longer build confserv.c
2000-02-24 14:48:30 +00:00
James Brister
2cde028c51 New dns_peer_t type and its methods. 2000-02-24 14:39:27 +00:00
Bob Halley
856ddedea9 add validator done event 2000-02-24 00:22:54 +00:00
Bob Halley
e612c2d0b1 improve comment 2000-02-23 23:32:06 +00:00
Bob Halley
1f61ebeead add keytag, keytable, and keynode types 2000-02-23 23:31:51 +00:00
Bob Halley
bf43fdafa3 add keytable, validator 2000-02-23 23:31:33 +00:00
Bob Halley
380466f49e remove trusted key stuff 2000-02-23 23:30:29 +00:00
Bob Halley
7126c08a71 add request.h 2000-02-23 21:54:00 +00:00
Bob Halley
f919bf7227 add 2000-02-23 21:53:22 +00:00
Andreas Gustafsson
3eef7eaba0 renamed dns_acl_checkrequest() to ns_client_checkacl()
and moved it to bin/named/client.c to reflect the fact that it
implemented BIND ACL policy more than general-purpose library
functionality; resolve ACL defaults at configuration time
rather than when the ACL is evaluated
2000-02-22 21:24:24 +00:00
Bob Halley
ef1dabcd5c add dns_validator_t 2000-02-19 00:11:56 +00:00
Bob Halley
f18f3c93e7 add dns_name_requiresedns() 2000-02-19 00:11:21 +00:00
Andreas Gustafsson
7e46d184d9 typo in comment 2000-02-16 22:33:47 +00:00
Brian Wellington
9fae7ff638 dns_zone_getssutable/dns_zone_setssutable 2000-02-16 16:37:55 +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
Brian Wellington
99fa73cf4c added ssu.h 2000-02-15 21:51:48 +00:00
Brian Wellington
55e001d7ba added support for different pattern types. c file coming later 2000-02-15 20:16:09 +00:00
Brian Wellington
16a5aa9a57 add dns_ssutable_t 2000-02-15 19:53:18 +00:00
Andreas Gustafsson
fd0bc40a25 IP addresses in ACLs are now represented as
isc_netaddr_t, not isc_sockaddr_t
2000-02-15 19:53:05 +00:00
James Brister
b9b814893a Add prototype for dns_c_ipmatchany_new(). 2000-02-15 17:07:52 +00:00
James Brister
0b5d6a2091 Add dns_c_ipmatch_any to dns_c_ipmatch_type_t enum. 2000-02-15 17:06:58 +00:00
Brian Wellington
01d202be8f *** empty log message *** 2000-02-14 21:00:38 +00:00
James Brister
d47b32d4b9 Add allow-update-forwarding support to zones. 2000-02-14 17:18:40 +00:00
James Brister
83be31d86d Add allow-update-forwarding supprt to views. 2000-02-14 17:16:35 +00:00
James Brister
d549c37348 Support ondestroy notfication of databases. 2000-02-10 16:09:01 +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
a174757026 implemented the 'localhost' and 'localnets' ACLs 2000-02-09 22:59:40 +00:00
James Brister
e1eebec93e Support query-source-v6 and transfer-source-v6 2000-02-09 16:51:34 +00:00
Bob Halley
a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Brian Wellington
6cac2e0f7a dns_db_deleterdataset can now delete SIG sets. 2000-02-08 19:25:37 +00:00
Brian Wellington
ca5af3ab78 dns_buildnxt takes a ttl as a parameter, instead of using 3600. 2000-02-08 19:02:24 +00:00
Bob Halley
0a26ae650d add missing .h files 2000-02-04 01:33:16 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Michael Graff
7a166c5c61 completely decouple the lwres library from libisc. Bad michael for using isc/int.h and isc/lang.h, bad Mark for adding isc/tring.h, isc/net.h, and a few others. 2000-02-03 01:28:52 +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
Brian Wellington
d2b77d720f Added dns_name_matcheswildcard 2000-02-02 20:11:55 +00:00
Andreas Gustafsson
7b24a94d11 typo in comment 2000-02-02 00:41:26 +00:00
Andreas Gustafsson
d5017b061c typo in comment 2000-02-02 00:38:28 +00:00
Andreas Gustafsson
62e22bc7a5 typos in comments 2000-02-02 00:36:34 +00:00
Andreas Gustafsson
9a1e183042 removed unnecessary #includes 2000-01-31 18:32:36 +00:00
Andreas Gustafsson
c718c8aa60 separate transfer-source addresses for IPv4 and IPv6 2000-01-31 18:00:07 +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
Mark Andrews
fb5363b897 dns_master_dumptostream() from static to public. 2000-01-31 01:51:26 +00:00
Andreas Gustafsson
a31e0ba97b leading whitespace caused OSF/1 cpp to ignore #endif directive 2000-01-29 00:53:49 +00:00
James Brister
1549f02958 Zones now have a pointer to their owner view. 2000-01-29 00:04:50 +00:00
James Brister
93c69b1231 Several new fields added to views.
declarations of many new fields accessor/modifier functions.
2000-01-29 00:03:45 +00:00
James Brister
76861e034c New functions declarations. 2000-01-29 00:02:28 +00:00
James Brister
4714bab9f2 Added also-notify and transfer-source options fields.
declarations for new accessors/modifiers.
2000-01-29 00:01:54 +00:00
James Brister
281a0c609d Stripped some dead code.
Move typesdefs here from elsewhere to avoid circular include file
dependencies.
2000-01-29 00:00:42 +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
James Brister
c71fc7ffdd Remove definition and use of dns_c_severity_t and replace with dns_severity_t. 2000-01-28 19:56:25 +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
ab0ce599ab added dns_severity_t 2000-01-27 19:40:53 +00:00
Bob Halley
f91c2ae744 basic priming support 2000-01-27 02:55:47 +00:00
Bob Halley
42d6e0a1b8 allow the root hints to be built from a file too 2000-01-27 01:55:46 +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
0df20c101e add v6 dispatcher and options to resolver creation routine 2000-01-26 16:57:48 +00:00
Bob Halley
64e829fffb allow db adds to be forced 2000-01-25 19:26:45 +00:00
Brian Wellington
fb01226bcd - generated TSIG keys can expire
- TKEY actually uses class ANY now
2000-01-24 22:22:51 +00:00
Brian Wellington
7d86ce8dfc More TKEY updates and fixes... 2000-01-24 20:19:53 +00:00
Andreas Gustafsson
f93d33e24f separated BIND specific configuration code from rest
of TSIG/TKEY code; renamed TSIG/TKEY context create and destroy functions for
consistency with rest of library
2000-01-24 19:14:26 +00:00
Andreas Gustafsson
389cb82bb5 removed unnecessary #include <isc/lex.h> 2000-01-24 18:14:30 +00:00
Brian Wellington
b6666e61dc More TSIG/TKEY minor fixes (including a few more plugged memory leaks) 2000-01-22 04:45:17 +00:00
Bob Halley
29fe07c7a4 Move to DNS namespace. Add ISC_LANG stuff. 2000-01-22 02:36:15 +00:00
Andreas Gustafsson
8f16e457f7 dns_rootns_create() is now in libdns 2000-01-22 01:59:02 +00:00
Andreas Gustafsson
2680c1bb61 log master file loading errors through the logging subsystem
by default
2000-01-22 01:38:58 +00:00
Andreas Gustafsson
036df8a12d exit server if loading a zone fails during initial startup
(but not if it fails during a subsequent reload)
2000-01-22 01:36:34 +00:00
Brian Wellington
b984520acc major TSIG/TKEY cleanup 2000-01-21 20:18:41 +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
6889d57aab don't needlessly destroy and recreate zones when doing minor reconfigurations 2000-01-21 19:22:35 +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
4abed3e356 CNAME/DNAME chaining (initial support; A6 still missing) 2000-01-21 02:50:27 +00:00
Bob Halley
f53e43c37f add DNS_R_ALIAS 2000-01-21 02:48:42 +00:00
Bob Halley
46cfdf4977 cancelfetch and destroyfetch no longer take a resolver argument 2000-01-21 02:47:38 +00:00
Andreas Gustafsson
d9a28c4a0d remove needless #includes 2000-01-20 01:14:33 +00:00
Andreas Gustafsson
070d058606 #include <dns/zt.h> in view.c, not view.h 2000-01-20 00:46:45 +00:00
Andreas Gustafsson
564e88f79e #include <dns/zone.h> in zt.c, not zt.h 2000-01-20 00:45:56 +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
78eeb67d6c more documentation 2000-01-18 19:17:04 +00:00
Bob Halley
87837577a1 improve documentation 2000-01-18 19:10:39 +00:00
Bob Halley
c8e15d5c18 remove byaddr from event 2000-01-18 19:07:27 +00:00
Bob Halley
e8e4cccb4c domain and nameservers arguments to createfetch are now optional 2000-01-18 02:49:03 +00:00
James Brister
6ca3b786b4 Support new 'tcp-clients' and 'recursive-clients' statements. 2000-01-17 14:41:24 +00:00
Bob Halley
72e7662efe nonworking checkpoint 2000-01-15 00:48:49 +00:00
Bob Halley
8f5df5f1fe What used to be dns_view_find() is now dns_view_simplefind().
There's now a new dns_view_find() that will return DNS_R_CNAME and DNS_R_DNAME.
Also, both find routines now also return DNS_R_NXDOMAIN and DNS_R_NXRRSET
so that callers can tell whether or not a fetch might be useful.
2000-01-15 00:47:45 +00:00
Bob Halley
16804ba3b7 fix some inaccuracies in the documentation of dns_view_find() 2000-01-14 23:55:26 +00:00
Andreas Gustafsson
7693d4de8f added dns_acl_any(), dns_acl_none() 2000-01-13 23:38:55 +00:00
Bob Halley
4e3b64c9a4 update list of installed .h files 2000-01-12 23:24:00 +00:00
Andreas Gustafsson
eb37a8ce9e headers should not include themselves 2000-01-12 22:22:50 +00:00
Bob Halley
70b4d10569 add byaddr support 2000-01-12 20:05:41 +00:00
Bob Halley
34347e0844 add byaddr skeleton 2000-01-12 20:05:15 +00:00
Bob Halley
a44c12b332 add dns_adb_findaddrinfo() and dns_adb_freeaddrinfo() 2000-01-12 03:00:33 +00:00
Bob Halley
7c2fd18a36 support freezing; basic forwarding 2000-01-12 02:59:48 +00:00
Bob Halley
4226a822e8 add dns_fwdpolicy_t 2000-01-12 02:59:21 +00:00
Michael Graff
0941f35ad9 Start moving the dispatcher code to allow it to be used for wire format as well as for lightweight resolver daemon stuff. 2000-01-07 01:17:47 +00:00
Michael Graff
0fd03d2a66 fix up comments 2000-01-06 23:07:21 +00:00
James Brister
ce38a4c8d0 Use in_port_t instead of short. 2000-01-06 16:15:29 +00:00
Bob Halley
24a2d84aed add DNS_ADBFIND_STARTATROOT 2000-01-06 00:56:37 +00:00
Andreas Gustafsson
ffa15cef7f document the fact that dns_acl_match now always succeeds 2000-01-04 21:45:08 +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
Andreas Gustafsson
9b0e18da3d dns_result_t/isc_result_t unification 1999-12-22 17:37:31 +00:00
Michael Graff
733b16eb0b priority rendering 1999-12-22 03:22:59 +00:00
Mark Andrews
9ac1456101 A fix comments to match reality. 1999-12-21 00:34:44 +00:00
James Brister
e0c873ebc7 Declare new function dns_c_checkconfig that's used in main parsing routine. 1999-12-17 18:34:16 +00:00
Andreas Gustafsson
8f79820c69 wired up the 'cleaning-interval' config option 1999-12-17 01:02:49 +00:00
Michael Graff
59602a4485 set DNS_RDATASETATTR_TTLADJUSTED when the ttl's for rdata don't match 1999-12-17 00:21:38 +00:00
Andreas Gustafsson
6017f424ee introducing dns_acl_t; other restructuring of server
configuration process aiming to reduce the degree of mutual dependency
between lib/dns/config and the rest of libdns
1999-12-16 23:11:07 +00:00
Michael Graff
607dc8013a make dispatcher hash sizes be primes, and provide an increment to help
resolve hash collisions
1999-12-15 17:14:52 +00:00
Mark Andrews
271154eafd dns_message_reply(): copy the question section of notify messages. 1999-12-15 07:28:51 +00:00
Bob Halley
4a3ad0da97 IPv6 query flood suppression 1999-12-14 00:10:06 +00:00
Mark Andrews
76a8dfb307 Add idle and max xfer timeouts. 1999-12-13 06:39:39 +00:00
Mark Andrews
2ea83bcfe5 Stub zones do not transfer out.
Master zones do transfer out.
1999-12-13 05:24:13 +00:00
Mark Andrews
8436cbc6a4 Connect zone transfers to refresh timers.
Various logging changes.
Add dns_zone_getclass().
Added locking to zonemgr.
1999-12-13 03:04:55 +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
James Brister
0b8e472452 Support new max-transfer-time-out, max-transfer-idle-in and
max-transfer-idle-out statements in options block and zone statements.
1999-12-11 13:44:46 +00:00
Andreas Gustafsson
5cee8302fc dns_aml_checkrequest() now takes signer name, not message 1999-12-10 18:14:49 +00:00
Mark Andrews
bd1a878734 Update dns_name_fromregion to match reality. 1999-12-10 02:23:08 +00:00
Mark Andrews
6cefa82d9a dns_journal_rollforward() now returns DNS_R_JOURNAL if the file does not exist. 1999-12-07 06:26:59 +00:00
Mark Andrews
3864eb0e9a Add DNS_R_NOJOURNAL 1999-12-07 06:06:51 +00:00
James Brister
0e0be28c8b Added some extra REQUIREs and fixed up some magic number handling. 1999-12-06 18:25:40 +00:00
James Brister
638434f6d3 Dead code removal. 1999-12-06 18:22:41 +00:00
James Brister
1ce5dcf1c8 Change config API to not take a isc_log_t but use dns_lctx extern. 1999-12-06 12:40:39 +00:00
Andreas Gustafsson
fd15c8e32e Views now have a 'cache' field. The 'cachedb' field still
exists as a convenience shortcut / backwards compatibility thing.
1999-12-02 22:38:34 +00:00
Andreas Gustafsson
97404c1965 forward declare dns_cache_t in <dns/types.h>;
renamed dns_cache_getdb() to dns_cache_attachdb()
1999-12-02 22:35:01 +00:00
Andreas Gustafsson
d8574ceec6 forward declare dns_cache_t in <dns/types.h> 1999-12-02 22:34:32 +00:00
Andreas Gustafsson
1fd768aea9 changed arguments to dns_aml_checkrequest(); comments 1999-12-02 22:27:51 +00:00
James Brister
29bf8316a3 - Hold list of pubkeys instead of a single pubkey in zones.
- Change dns_zone_copy to use pubkey list.
- MAGIC-number related fixes and miscellaneous defensive programing issues.
1999-12-01 16:29:00 +00:00
Andreas Gustafsson
dac2799ea1 new source file aml.c, for address match list handling 1999-11-30 22:10:08 +00:00
Andreas Gustafsson
3f84bf884a added DNS_LOGMODULE_AML 1999-11-30 22:04:56 +00:00
Andreas Gustafsson
f951f076f3 added cache code from late spring; it is not yet used 1999-11-29 17:58:39 +00:00
Andreas Gustafsson
8d6e7d47cf added DNS_EVENT_CACHECLEAN 1999-11-28 21:18:02 +00:00
Bob Halley
82886629c4 dns_message_renderrelease() is now void 1999-11-25 01:58:28 +00:00
Bob Halley
2da97701c4 update comments 1999-11-25 00:08:15 +00:00
Bob Halley
b65c1b247f add DNS_DBFIND_PENDINGOK support 1999-11-23 20:53:17 +00:00
Bob Halley
852a7a71c9 first try at comments 1999-11-23 20:45:56 +00:00
Bob Halley
66dfced5d1 keep track of now and the chain expiration time 1999-11-22 19:56:08 +00:00
Bob Halley
b80290952d add shutdown and whenshutdown methods 1999-11-22 19:55:08 +00:00
Bob Halley
27d4efe5c8 cleanup; add view shutdown events 1999-11-22 19:54:23 +00:00
Bob Halley
205790a755 coordinated shutdown of resolver and adb 1999-11-22 19:53:51 +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
James Brister
292031c9fc - Removed config *_delete functions on structures that use reference
counting and replaced with *_detach.
- Changed config *_attach functions to return the new attached value through
  the paramater list rather than as a return value.
- Changed config *_delete functions to no longer allow deletion of a null
  pointer
- Changed calls to the config *_delete functions to make sure no null
  pointers were passed in.
- Changed use of the config *_attach function to match new signature.
1999-11-17 21:52:32 +00:00
Bob Halley
7a3010be81 add NOEDNS0 flag 1999-11-16 21:05:33 +00:00
Michael Graff
4f6dd51441 add dns_adb_changeflags() 1999-11-16 06:53:29 +00:00
Brian Wellington
31b6349dbb added dns_tkey_destroy 1999-11-05 16:53:24 +00:00
Bob Halley
28ab8277a0 create adb list types 1999-11-05 09:49:53 +00:00
Mark Andrews
6314cd3338 Support $TTL w/ BIND 8 format
dns_ttl_fromtext() to return DNS_R_BADTTL not DNS_R_SYNTAX.
1999-11-04 01:21:28 +00:00
Brian Wellington
5c688a008a A bit of SIG(0) cleanup 1999-11-02 22:58:29 +00:00
Brian Wellington
0b764d91c9 - updates to dns_message_signer to handle SIG(0) as well as TSIG
- SIG(0)'s can be rendered, and information is stored to allow them to be
verified after parsing.  This needs some cleanup work done.
1999-11-02 19:59:04 +00:00
Brian Wellington
322b0fb39d added DNS_R_NOIDENTITY 1999-11-02 19:57:13 +00:00
Brian Wellington
d598338952 Added the concept of a signature's identity - either from a SIG(0) key, a
statically configureed TSIG key, or the creator or a generated TSIG key.
1999-11-02 19:55:45 +00:00
Brian Wellington
0a1c6f36c8 preliminary SIG(0) support 1999-11-02 19:53:41 +00:00
James Brister
e42197260c Support forward and forwarders values inside master, slave and stub zones. 1999-11-02 15:49:44 +00:00
Mark Andrews
9088094680 Add read support for BIND 8 TTL / counter format to soa.
Move bind_ttl to ttl.c and rename dns_ttl_fromtext and dns_counter_fromtext,
fix bug in handling of seconds (x 1 not x 60), can also handle raw number.
1999-11-02 13:07:53 +00:00
James Brister
3f8c638594 Support rfc2308-type1 options statement. 1999-11-02 09:13:48 +00:00
Brian Wellington
73af6575e0 Added DNS_R_NOTVERIFIEDYET 1999-11-01 22:54:26 +00:00
Michael Graff
4281fe4a80 dead/needs_poke are flags for adbnames, merge in Bob's changes 1999-10-30 01:58:02 +00:00
Andreas Gustafsson
81ae5e1ae6 added xfer_in/xfer_out categories and modules 1999-10-29 22:37:47 +00:00
Michael Graff
cfec676d09 define module adb 1999-10-29 22:28:35 +00:00
Michael Graff
c803787146 replace all instances of 'handle' with 'find' since that's what they are now. 1999-10-29 18:30:48 +00:00
Michael Graff
2992344aac dns_adbhandle_t -> dns_adbfind_t 1999-10-29 18:07:32 +00:00
Michael Graff
897c9ddb4d implement dns_adb_cancelfind(), rename _done() to _destroyfind(), and _lookup to _createfind() 1999-10-29 18:00:31 +00:00
James Brister
0c357624ee kdeflist functions added 1999-10-29 16:00:13 +00:00
Brian Wellington
ffdcf33647 TSIG uses the new kdeflist accessor, other assorted TSIG/TKEY config updates 1999-10-29 13:56:56 +00:00
Mark Andrews
fe37278859 in6_addr.s6_addr is *always* an array. 1999-10-29 06:36:05 +00:00
Mark Andrews
d1ee833efb remove extraneous commas 1999-10-29 05:12:24 +00:00
Bob Halley
7b4dcbb89b add DNS_R_WAIT 1999-10-29 03:31:13 +00:00
Andreas Gustafsson
a474ba139d enabled incoming zone transfer code; there are no SOA
queries yet, so we just do an unconditional transfer attempt at server
startup time for each slave zone
1999-10-29 02:41:56 +00:00
Andreas Gustafsson
81ce556e02 moved xfrin.c from bin/named to lib/dns by repository copy 1999-10-29 02:12:01 +00:00
Michael Graff
d43c2cc7bc private links are plink, public links are publink 1999-10-29 01:53:20 +00:00
Michael Graff
ff9bb3fc54 more v4/v6 splitting out 1999-10-29 01:26:45 +00:00
Andreas Gustafsson
71a16ee135 checkpoint, introducing new type dns_zonemgr_t 1999-10-29 00:46:53 +00:00
Michael Graff
1f90c10828 start on ipv6 bits 1999-10-28 21:50:27 +00:00
Michael Graff
d4d2a13916 add plink 1999-10-28 20:09:51 +00:00
Bob Halley
726290e9d5 add adb 1999-10-28 19:52:10 +00:00
Bob Halley
29228e4aff move adb typedefs to types.h 1999-10-28 19:51:54 +00:00
Brian Wellington
06f9d6486e dns_message_signer update 1999-10-28 14:18:52 +00:00
Brian Wellington
e5c7544550 dns_message_signer 1999-10-27 22:25:55 +00:00
Michael Graff
2bcb48cfca adb does fetches for A records now. Has a memory leak still. 1999-10-27 22:24:40 +00:00
Brian Wellington
e552b98037 - TSIG keys are created from the config structures
- TSIG key initialization cleanup
1999-10-27 19:59:34 +00:00
Michael Graff
1c3bc66ada snapshot; nearly all fetch infrastructure is in place. 1999-10-27 19:36:58 +00:00
Mark Andrews
c31c447853 Update usage comments 1999-10-27 05:55:03 +00:00
Mark Andrews
412e2345a7 Add a FILE * arguement to dns_journal_print() and dns_diff_print(). 1999-10-27 05:53:59 +00:00
Bob Halley
08f8af2a42 add dns_view_findzonecut() 1999-10-27 00:43:56 +00:00
Bob Halley
c5a031ab2c add dns_rdatalist_init() 1999-10-27 00:43:43 +00:00
Andreas Gustafsson
61ba96e2f9 added DNS_LOGMODULE_JOURNAL 1999-10-27 00:30:28 +00:00
Brian Wellington
f879d3ee27 - Return the generated key from dns_tkey_processdhresponse
- Check for NOERROR in dns_tkey_process*
1999-10-26 21:57:53 +00:00
Brian Wellington
a413f94248 invalid tkey result code 1999-10-26 19:30:23 +00:00
Brian Wellington
d864d899d7 tkey snapshot 1999-10-26 15:39:59 +00:00
James Brister
01fa4e3634 Removed tkey from server statement.
Added integer argument to tkey options value.
1999-10-26 15:25:38 +00:00
Mark Andrews
7d9cb86e80 Add stop on error flag to dns_zt_apply. 1999-10-26 02:29:49 +00:00
Michael Graff
fc4fe6e5e6 start on name expiration times 1999-10-26 00:16:36 +00:00
Michael Graff
3ac63b4720 start on cleanup timer/task 1999-10-25 22:53:15 +00:00
Michael Graff
fbcf7bc351 fix, take II 1999-10-25 21:40:56 +00:00
Michael Graff
11efdeb076 fix 1999-10-25 21:39:08 +00:00
Bob Halley
8d298aca1c suppress glue in most cache retrievals; get rid of NXGLUE 1999-10-25 21:19:02 +00:00
Bob Halley
e1c4942037 add glue trust level 1999-10-25 21:18:39 +00:00
Bob Halley
2cbedda69e get rid of NXGLUE 1999-10-25 21:17:54 +00:00
Brian Wellington
77434343cb added dns_tsigerror_badname from tkey-01 1999-10-25 21:17:11 +00:00
Brian Wellington
ac335315cd add generated flag to tsig key 1999-10-25 20:55:31 +00:00
Bob Halley
bad8294771 add const to filename args 1999-10-25 18:42:09 +00:00
Mark Andrews
936f1c128f add log context to dns_zone_copy()
fix various locking problems in zone.
1999-10-25 13:44:53 +00:00
Mark Andrews
ad61b7e789 add prototype dns_zt_apply() 1999-10-25 13:32:52 +00:00
Mark Andrews
0358d65e07 add prototype dns_view_load() 1999-10-25 13:31:18 +00:00
Mark Andrews
76771c089c Add prototype for dns_zt_print(). 1999-10-25 11:23:06 +00:00
Mark Andrews
70f6053bd1 Add DNS_LOGMODULE_ZONE 1999-10-25 11:21:03 +00:00
James Brister
6f9fbf8b48 Prototypes for tkey-domain and tkey-dhkey related functions. 1999-10-25 10:04:18 +00:00
Bob Halley
2c2cda0045 add resolver category and module 1999-10-22 19:33:13 +00:00
Michael Graff
a385f150bb fix shutdown routines. The adb will go away at the right time, now. 1999-10-22 05:19:42 +00:00
Michael Graff
e45d323a2a s/address/adb/ 1999-10-22 01:02:38 +00:00
Michael Graff
93a916d8b9 rename address.[ch] to adb.[ch] -- files moved via repository copy 1999-10-22 00:59:30 +00:00
Bob Halley
9acbfdb6a2 add dns_db_findzonecut() 1999-10-21 17:50:36 +00:00
Michael Graff
29f28fe573 database lookups 1999-10-21 01:18:06 +00:00
Michael Graff
f181f94ec8 snapshot 1999-10-20 23:26:06 +00:00
Bob Halley
1646ae97bc add dns_resolver_cancelfetch 1999-10-20 01:57:05 +00:00
Michael Graff
beb2b4f196 Allow the srtt value to be adjusted, and update the goodness and srtt when they are modified 1999-10-19 22:21:27 +00:00
Michael Graff
ca924f706b Add a way to adjust goodness. 1999-10-19 22:06:08 +00:00
Michael Graff
f00d96a15c make lameness work, now. Grr. 1999-10-19 21:28:09 +00:00
Michael Graff
f36a81c884 Add the API to allow marking an address as lame for a zone 1999-10-19 21:10:29 +00:00
Michael Graff
d8590892d1 Add code to check for a lame zone, and to expire lame entries as needed. 1999-10-19 20:55:04 +00:00
Brian Wellington
15660bccc1 Lock the reference count and deleted flags in a tsig key 1999-10-19 15:34:39 +00:00
Michael Graff
30251e07d1 snapshot ; external and internal reference counts are separated out,
and everything but fetches work.
1999-10-19 01:37:22 +00:00
Bob Halley
2d47cd4aa2 add CHAINING attribute 1999-10-17 19:23:14 +00:00
Bob Halley
345a84c9f1 add dns_name_print 1999-10-17 19:22:50 +00:00
David Lawrence
92712379fc Updated documentation for chains, level_matches and level_count.
Updated documentation for dns_rbt_findnode to describe more what
happens with various return values, and that the chain points to the
DNSSEC predecessor for all non-error returns.

New documentation for dns_rbtnodechain_{prev,next}.

Updated documentation for other dns_rbtnodechain_*.
1999-10-16 20:34:52 +00:00
James Brister
80bd254851 Updated use of magic numbers. 1999-10-16 01:34:30 +00:00
Michael Graff
86944a4c80 snapshot; everything works other than fetches and database lookups. 1999-10-16 00:38:21 +00:00
Michael Graff
baf8179150 use DNS_EVENT_ADBNAMEDELETED to indicate a name was pulled out from under a request. 1999-10-16 00:37:55 +00:00
Bob Halley
cd02757774 add negative caching result codes 1999-10-15 20:49:33 +00:00
Bob Halley
e7dbdb2547 cleanups; change viewlist find routine 1999-10-15 01:43:39 +00:00
Bob Halley
f92876cfed eliminate zone callback; export dns_zone_equal() 1999-10-15 01:36:41 +00:00
Bob Halley
3b9b3c21a7 add/renumber some attributes 1999-10-15 01:36:09 +00:00
Brian Wellington
77744ef575 Added tkey.h, which provides prototypes for the functions in the not-yet
added tkey.c.  tkey.c needs some config help before it can be added.
1999-10-14 18:38:59 +00:00
Brian Wellington
1a2c699f0e - suppress duplicate keys
- allow finding a key by name only (instead of name and algorithm)
- add creator field, which is filled in by TKEY
1999-10-14 18:35:25 +00:00
Mark Andrews
6f44af1c83 dns_view_create(): 'name' to (const char *) instead of (char *) 1999-10-14 06:00:55 +00:00
Mark Andrews
0b16ae54f7 add dns_view_findzone() declaration. 1999-10-14 05:06:01 +00:00
Mark Andrews
fd5fff738d dns_zone_getdb nor returns DNS_R_NOTLOADED 1999-10-14 03:14:15 +00:00
Mark Andrews
659175b7d4 Add DNS_R_NOTLOADED. 1999-10-14 01:24:08 +00:00
Michael Graff
6d14fe95e9 snapshot: dns_adb_done() partial implementation, handles mostly work, but
no fetches are started yet.
1999-10-14 00:50:00 +00:00
Mark Andrews
f182ffaba7 dns_getname_origin nor returns (dns_name_t *) again. 1999-10-14 00:47:01 +00:00
Andreas Gustafsson
4dbbfeda13 replaced xfrin_test() by ns_xfrin_start() 1999-10-14 00:00:59 +00:00
Mark Andrews
3c962bd6d2 add dns_c_iplist_equal() declaration.
add dns_c_ipmatchelement_equal() declaration.
	add dns_c_ipmatchlist_equal() declaration.
1999-10-13 22:18:49 +00:00
Mark Andrews
789df40199 add dns_c_pubkey_equal() declaration. 1999-10-13 22:17:22 +00:00
Mark Andrews
a0eb07c71a Add dns_journal_print() declaration (debugging use only at this stage). 1999-10-13 22:16:31 +00:00
Mark Andrews
263a376eaa Add dns_name_dynamic() declaration. 1999-10-13 22:15:15 +00:00
Mark Andrews
259ce22ab3 add dns_zone_callbackarg_t typedef
add dns_zt_t typedef
1999-10-13 22:13:55 +00:00
Mark Andrews
800b03baba dbtable -> zonetable conversion.
add dns_view_addzone() declaration.
	remove dns_view_addzonedb() declaration.
	add dns_view_findinlist() declaration.
1999-10-13 22:12:24 +00:00
Mark Andrews
66912d1625 add dns_zone_callbackarg structure.
add dns_zone_getorigin() declaration.
	update dns_zone_getdb() declaration.
	add dns_zone_notify() declaration.
	add dns_zone_replacedb() declaration.
1999-10-13 22:09:09 +00:00
Mark Andrews
b0526987ae add declaration for dns_zt_load()
add function descriptions and contract details.
1999-10-13 22:04:18 +00:00
Andreas Gustafsson
8a7276e6ef added event types DNS_EVENT_UPDATE and DNS_EVENT_UPDATEDONE for
use by dynamic update queueing
1999-10-13 18:11:19 +00:00
James Brister
66713b72dc Added a dns_c_view_t to dns_zone_callback paramater list. 1999-10-13 18:00:46 +00:00
James Brister
9a6479b068 Added dns_c_view_getname. 1999-10-13 18:00:17 +00:00
James Brister
a7eb7752a7 Include the zone's view (or NULL) in the zone_callback paramater list. 1999-10-13 17:59:45 +00:00
Bob Halley
2621e791c3 add NCACHE attribute 1999-10-12 20:39:04 +00:00
David Lawrence
a7b730b8e9 updated comments to describe what a chain's level_count and level_matches
represent.  point out that memory is only allocated for ancestors in a chain
when ancestor_maxitems > DNS_RBT_ANCESTORBLOCK.

miscellaneous other comment updates.
1999-10-12 14:16:27 +00:00
Bob Halley
084b422656 add attributes used by the resolver for caching 1999-10-11 19:17:38 +00:00
Bob Halley
a1ee8ac346 move rbt typedef to types.h; add trust levels 1999-10-11 19:15:37 +00:00
Bob Halley
e717473254 move rbt typedef to types.h 1999-10-11 19:15:23 +00:00
Bob Halley
00e7d7a0e8 Add DNSSEC security roots RBT 1999-10-11 19:13:17 +00:00
Brian Wellington
c0ddfabced dns_dnssec_findzonekeys should use isc_result_t, not dns_result_t 1999-10-11 15:15:39 +00:00
James Brister
f7a00c14fd Misc changes due to views 1999-10-10 17:16:07 +00:00
James Brister
df82fed5c2 Added confcache.h and confresolv.h 1999-10-10 17:13:40 +00:00
James Brister
95360399dc Placeholders for future config file structures. 1999-10-10 17:09:37 +00:00
Michael Graff
439c0011e6 snapshot 1999-10-08 23:12:21 +00:00
David Lawrence
5e7e5134a9 dns_c_logginglist_addcategory() 4th arg is isc_boolean_t, not isc_boolean_t * 1999-10-08 22:55:33 +00:00
David Lawrence
e97301448d no need for arpa/nameser.h
needs string.h to prototype frequent use of memset()
1999-10-08 22:52:59 +00:00
Brian Wellington
949d406b57 reference counting on TSIG keys. Necessary for TKEY delete 1999-10-08 20:14:47 +00:00
Brian Wellington
3f6dc1703f tsig structure/function name change 1999-10-08 18:37:24 +00:00
Bob Halley
e3027d397f resolver checkpoint 1999-10-07 19:41:16 +00:00
Bob Halley
63d1ef9e77 add DNS_R_DROP 1999-10-07 19:40:57 +00:00
Bob Halley
d1be0cf18b add CD and AD 1999-10-05 22:11:58 +00:00
James Brister
4b6bf958f6 Use logging system 1999-10-02 21:23:49 +00:00
James Brister
249aa1914b Added some config categories and modules 1999-10-02 21:14:11 +00:00
David Lawrence
a252c2771f include isc/net.h, do not include sys/socket.h, netinet/in.h or arpa/inet.h,
and/or use type in_port_t instead of unsigned int for ports
1999-10-02 02:54:16 +00:00
Michael Graff
64828244e0 Many changes.
o added adb_test.c to test the functions already written.

	o added code to delete names and all associated addresses.

	o added a database dumper which will currently print the adb
	  in a human (or at least developer) readable format.

	o found and fixed many twisted little locking issues.
1999-10-02 01:59:09 +00:00
Andreas Gustafsson
9b0d518110 moved dns_db_diff() from xfrin.c to journal.c; const correctness 1999-09-27 06:30:15 +00:00
Michael Graff
3c5148c4d9 add dns_adb_refresh() 1999-09-25 01:56:10 +00:00
Michael Graff
519b4a1a27 clean up public vs. private items 1999-09-25 01:44:41 +00:00
Michael Graff
0468b44003 use isc/magic.h 1999-09-25 01:25:06 +00:00
Andreas Gustafsson
71b4bbe284 added dns_zone_getorigin(), dns_zone_getdatabase(),
dns_zone_getixfrlog()
1999-09-24 05:57:54 +00:00
Bob Halley
3898056837 hints support 1999-09-24 01:40:50 +00:00
Bob Halley
d14b749789 add DNS_R_HINT 1999-09-24 01:40:15 +00:00
David Lawrence
fc80027fb5 logging interface & test program. not yet NT portable because of syslog. 1999-09-23 17:43:51 +00:00
Andreas Gustafsson
55243e5263 moved dns_zone_t typedef to <dns/types.h> 1999-09-23 10:45:06 +00:00
Andreas Gustafsson
89e7b5009b added dns_zone_gettype() and dns_zone_gettask() 1999-09-23 06:42:10 +00:00
Michael Graff
ad3a5c4b7e Start flushing out the address.c stuff 1999-09-23 00:43:10 +00:00
James Brister
d793dbd1b5 Config file view structures and their routines. 1999-09-22 21:20:10 +00:00
Bob Halley
7252b0d05c dns_resolver_create(): remove rdclass, add view 1999-09-22 19:45:09 +00:00
Bob Halley
c56c5586b4 add dns_view_find(); add comments 1999-09-22 19:35:47 +00:00
Bob Halley
19f08273e2 api changes expected to be helpful when reconfiguring 1999-09-22 18:23:36 +00:00
Michael Graff
213973a334 adjust what points to what. You are lost in a maze of twisty little pointers,
all alike.
1999-09-22 01:01:14 +00:00
Bob Halley
152303bce0 update comment 1999-09-22 00:27:20 +00:00
Bob Halley
42e339f588 add function prototypes 1999-09-22 00:27:01 +00:00
Michael Graff
11fcc67616 snapshot address.[ch] 1999-09-22 00:26:20 +00:00
Michael Graff
66bd3b3c6b Start on address.c 1999-09-21 22:46:42 +00:00
Michael Graff
9ec7000a15 Protect magic numbers and validity checks by putting them in our name space.
(Prefixed with DNS_)
1999-09-21 22:45:24 +00:00
Bob Halley
4e142a5bcc start of ncache support 1999-09-21 20:41:20 +00:00
Bob Halley
7837d14621 add dns_rdataset_count() 1999-09-21 20:40:42 +00:00
Bob Halley
e5c243997c Make a6 follower restartable. 1999-09-17 21:51:22 +00:00
James Brister
7c337a9ca9 IPv6 fixes.
Removed config specific address type and replced with isc_sockaddr_t
1999-09-17 14:22:06 +00:00
Mark Andrews
a86ce0b97d Adjust function dns_zt_*() names to remove _zone, lookup -> find.
Add thread support.
1999-09-17 10:00:14 +00:00
Andreas Gustafsson
3ddd92da66 improved support for mnemonics in DNSSEC RR types 1999-09-17 09:25:21 +00:00
Michael Graff
5f0e2c8913 update copyright text 1999-09-16 00:02:20 +00:00
Michael Graff
2f072c2982 Update copyrights 1999-09-15 23:03:43 +00:00
Michael Graff
2808b5a3ef reserve events for address.[ch] 1999-09-15 21:15:44 +00:00
Michael Graff
2a80dff9f2 no rcsid, thanks 1999-09-15 21:15:18 +00:00
Michael Graff
484e0cac08 Commit address.h -- soon to be the Address DataBase. 1999-09-15 21:14:59 +00:00
Mark Andrews
263f8b87e9 Initial implementation.
*not* yet thread safe.
1999-09-15 15:11:42 +00:00
Bob Halley
870288a1fa DNS_R_NXGLUE 1999-09-13 18:27:26 +00:00
Michael Graff
d8f304288d Use a memory pool for rdatasets as well 1999-09-11 01:35:55 +00:00
Brian Wellington
05b6b2e680 better error checking 1999-09-10 15:42:57 +00:00
Brian Wellington
c7f13217d1 TCP additions 1999-09-10 14:56:36 +00:00
Brian Wellington
8224be5129 more TSIG errors 1999-09-10 14:54:48 +00:00
Brian Wellington
24694ab18a new fields needed for TCP-TSIG 1999-09-10 14:54:10 +00:00
Michael Graff
af6e7e5cd2 Changes to message.c/h to use memory pools for names. Coming soon:
same thing for rdata, rdatalist, and rdatasets.

Also implement dns_message_takebuffer().

See comments in message.h for news.
1999-09-10 02:48:32 +00:00
Mark Andrews
bada60fd2a Non portable type used. u_int32_t -> isc_uint32_t 1999-09-09 23:25:51 +00:00
James Brister
26d88c4373 Fix decl for Digital Unix 1999-09-09 22:28:42 +00:00
Andreas Gustafsson
2813268985 added dns_dnssec_findzonekeys() 1999-09-09 08:28:23 +00:00
Andreas Gustafsson
3b6d32336c created 1999-09-09 08:21:45 +00:00
Michael Graff
186817c92c make dns_message_findtype() public 1999-09-09 01:10:53 +00:00
Andreas Gustafsson
b469f0321d added dns_rdatatype_isdnssec() and dns_rdatatype_iszonecutauth() 1999-09-08 07:35:27 +00:00
Bob Halley
0b157747b3 findrdataset can now return a sig 1999-09-08 01:10:08 +00:00
Bob Halley
9da327c41b add a6 1999-09-07 23:08:00 +00:00
Bob Halley
b3e2e7c4d6 add dns_db_issecure() 1999-09-07 18:12:11 +00:00
Andreas Gustafsson
ba2d393cd8 don't ignore updates that change only the TTL 1999-09-07 05:26:26 +00:00
Michael Graff
8c68207dfa use isc/bufferlist.h for definition of isc_bufferlist_t 1999-09-06 04:43:29 +00:00
James Brister
dcf97f1767 Include config parser header files. 1999-09-03 20:51:29 +00:00
James Brister
67d3afc471 Renamed many identifiers to match coding guidelines. 1999-09-03 20:48:22 +00:00
Brian Wellington
76caa58fe3 function to convert record to DST key 1999-09-03 19:05:50 +00:00
Mark Andrews
3e9a5c9dc6 Missing enum from config. 1999-09-03 13:24:14 +00:00
Bob Halley
065273f52a add _last, _prev, and _seek for dbiterators 1999-09-02 16:43:45 +00:00
Michael Graff
4556681e19 snapshot socket.[ch] code and commit dynbuf_t -> buffer_t changes 1999-09-02 02:10:44 +00:00
Mark Andrews
45a1684159 Add dns_resolver_getanswer().
Attach the resolver to dispatch.
1999-09-02 01:59:19 +00:00
Bob Halley
ac77fece9a EDNS0 1999-09-02 01:52:31 +00:00
Brian Wellington
ccad3c9ecb first cut at dnssec support 1999-09-01 20:50:49 +00:00
Bob Halley
bf555703f2 OPT support 1999-09-01 20:50:34 +00:00
Brian Wellington
1fd4766e5b constant renaming 1999-09-01 18:56:19 +00:00
Bob Halley
732e0731de SIG support 1999-08-31 22:14:06 +00:00
Bob Halley
8326257468 add dns_name_digest() 1999-08-31 22:09:52 +00:00
Bob Halley
0513f89e68 add dns_rdata_digest() and dns_rdata_covers() 1999-08-31 22:08:08 +00:00
Bob Halley
3d5a191c6f add covers 1999-08-31 22:07:20 +00:00
Bob Halley
73c972bda6 add dns_digestfunc_t 1999-08-31 22:06:56 +00:00
Mark Andrews
686b27bfd3 Initial zone code. Minimally functional. 1999-08-30 14:37:45 +00:00
Bob Halley
1f0e73c21f include name.h 1999-08-27 18:42:15 +00:00
Andreas Gustafsson
ea530fd748 xfrin_test now takes no arguments 1999-08-27 18:35:05 +00:00
Bob Halley
6e952e42e5 allow name downcasing inplace or to another name 1999-08-26 21:07:38 +00:00
Andreas Gustafsson
99934f36a2 dns_journal_commit() was declared twice; some cosmetic changes 1999-08-26 12:36:11 +00:00
Brian Wellington
27d40198de comment updates 1999-08-25 15:05:37 +00:00
Andreas Gustafsson
b59d3a39f9 xfrin_test now takes a view, not a dbtable 1999-08-25 06:46:01 +00:00
Andreas Gustafsson
169a0b9252 cut-and-paste-o 1999-08-24 06:46:48 +00:00
Brian Wellington
6d4886fa74 Added support for TSIG records in message and resolver subsystems, added
tsig to_struct/from_struct
1999-08-20 18:56:24 +00:00
Brian Wellington
04b8111f21 Added TSIG specific error codes 1999-08-20 17:02:15 +00:00
Brian Wellington
e22d03eb45 Added dns_name_downcase 1999-08-20 17:01:06 +00:00
Andreas Gustafsson
df6699ac61 view.h needs <isc/mutex.h> 1999-08-20 06:12:31 +00:00
Andreas Gustafsson
308c7ad5f6 new result code DNS_R_UPTODATE 1999-08-20 06:10:31 +00:00
Andreas Gustafsson
8dec0e1a3e dns_message_parse now takes new argument 'preserve_order' 1999-08-20 06:09:46 +00:00
Andreas Gustafsson
4cd3d6df39 initial checkin 1999-08-20 05:35:16 +00:00
Andreas Gustafsson
3532ed3bbd initial checkin 1999-08-20 05:26:49 +00:00
Bob Halley
28640d1da2 add dns_rdataset_isassociated 1999-08-19 20:44:56 +00:00
Andreas Gustafsson
07c94c0716 new function dns_rdataclass_ismeta 1999-08-16 06:45:52 +00:00
Bob Halley
70fdfcd1fa make names empty when construction fails instead of invalidating them 1999-08-12 20:26:45 +00:00
Bob Halley
ba2a3950b8 add DNS_RDATASETATTR_ANSWERED 1999-08-12 07:50:30 +00:00
Bob Halley
2504b0a586 add cachedb 1999-08-12 07:49:09 +00:00
Bob Halley
5f120ce962 add dns_wildcardname constant 1999-08-12 07:48:16 +00:00
Bob Halley
593d951248 add RBTDB wild bit 1999-08-12 07:47:21 +00:00
Bob Halley
87a5360e27 foundname is no longer optional in dns_db_find(); add DNS_DBFIND_NOWILD 1999-08-12 07:46:32 +00:00
Bob Halley
00d8179488 add dns_name_iswildcard() 1999-08-12 01:29:03 +00:00
Bob Halley
aeb1ccee6a allow buffer and stream loading 1999-08-05 22:10:23 +00:00
Bob Halley
43a7c2d2cd update comment 1999-08-05 22:09:51 +00:00
Bob Halley
abec6ac24d add class CH 1999-08-05 22:09:23 +00:00
Bob Halley
0da08ae74c add view.h 1999-08-05 22:09:01 +00:00
Bob Halley
f94f59d746 add 1999-08-05 22:08:45 +00:00
Bob Halley
0e919917cc class to rdclass 1999-08-02 22:19:30 +00:00
Bob Halley
d981ca6455 class to rdclass; additional data support 1999-08-02 22:18:31 +00:00
Bob Halley
396e149f32 additional data support 1999-08-02 22:17:36 +00:00
Bob Halley
7d44d8aacd add beginload and endload support 1999-07-30 23:32:19 +00:00
Bob Halley
4478cd2fa8 rename commit to add; use dns_addrdatasetfunc_t 1999-07-30 23:31:48 +00:00
Bob Halley
abf512ef63 add dns_addrdatasetfunc_t and dns_dbload_t 1999-07-30 23:31:27 +00:00
Andreas Gustafsson
2b9515f497 needs <isc/socket.h> 1999-07-30 13:34:19 +00:00
Bob Halley
a6ebd71eed tweaks to dns_message_reply() 1999-07-29 01:26:53 +00:00
Bob Halley
5fc1b54cc6 allow undedication of the dedicated buffer 1999-07-28 02:20:22 +00:00
Bob Halley
aa23c665d8 resolver checkpoint 1999-07-24 01:26:18 +00:00
Bob Halley
4034b7d6ed Declare types in <dns/types.h>.
Put MAGIC macros into the DNS_ namespace.
Added header_ok and question_ok to the message structure.
Specify the intent before the returned message pointer in
dns_message_create().
Allow an intent to be specified when calling dns_message_reset().
Add dns_message_reply().
1999-07-24 01:05:22 +00:00
Bob Halley
2fc77eff62 move types to <dns/types.h> 1999-07-24 01:02:30 +00:00
Bob Halley
937f9db1ed add opcode, message, dispatch, and view types; list TSIG errors 1999-07-24 01:02:07 +00:00
Bob Halley
25e43e68b7 rcode result type support; cleanups 1999-07-24 00:59:26 +00:00
Andreas Gustafsson
18cd3d3db4 typo 1999-07-23 12:05:50 +00:00
Andreas Gustafsson
da378e384b define dns_rdataclass_none as 254, not 0 (RFC2136); remove dns_rdatatype_none for consistency; add some meta-types 1999-07-23 09:14:36 +00:00
Michael Graff
6f1422b81e fix many bugs. 1999-07-22 01:34:31 +00:00
James Brister
0eb5c95878 Config library implementation files. 1999-07-19 13:25:18 +00:00
James Brister
bbe0dc743b New config file library headers. 1999-07-19 13:14:12 +00:00
Bob Halley
332d9b3837 use isc_uint16_t, not u_int16_t 1999-07-13 19:42:25 +00:00
Bob Halley
1c724c986d add rdataset cloning 1999-07-13 01:50:22 +00:00
Michael Graff
2743e0ce08 s/dns_dispatch_destroy()/dns_dispatch_detach()/g 1999-07-13 00:25:21 +00:00
Michael Graff
9e9630faca make this work. tcp messages are now working (receive at least) 1999-07-12 23:43:45 +00:00
Brian Wellington
65c4736d9c Added underlying DNSSEC support (dst and crypto libraries) 1999-07-12 20:08:42 +00:00
Bob Halley
b7fe872457 the tag field is now obsolete 1999-07-10 01:04:12 +00:00
Michael Graff
212e466f42 implement tcp messages (recv part) 1999-07-10 00:15:53 +00:00
Michael Graff
a4e7a96dd4 checkpoint 1999-07-09 23:46:05 +00:00
Michael Graff
111bf2b31d another event for tcpmsg 1999-07-09 23:46:02 +00:00
Michael Graff
c16cc434ef checkpoint; add dns_dispatch_getsocket() to return the socket being used 1999-07-09 20:32:12 +00:00
Andreas Gustafsson
5cc89b11fa added dns_rdatatype_ismeta() 1999-07-09 12:47:28 +00:00
Michael Graff
1ec39fc7a8 checkpoint 1999-07-08 02:50:00 +00:00
Michael Graff
ab0e506608 checkpoint 1999-07-06 19:32:40 +00:00
Bob Halley
2815aa70e2 checkpoint 1999-07-03 20:54:56 +00:00
Bob Halley
bf345589ce add question attribute 1999-07-03 20:52:50 +00:00
Bob Halley
402b05ddea require an initialized name for dns_name_dup(); lint 1999-07-03 20:51:31 +00:00
Brian Wellington
125d72976a Merged redundant DNS_R_ and ISC_R_ result codes 1999-07-02 17:51:27 +00:00
Andreas Gustafsson
3de3053dc1 clarified comments: dns_name_init does not require a valid name, it produces one 1999-06-30 17:25:36 +00:00
Michael Graff
8d1943e8ff add dns_dispatch_attach/detach(), and start on serious dispatcher hacking. 1999-06-30 01:33:11 +00:00
Bob Halley
49dd071153 checkpoint resolver code 1999-06-28 23:37:54 +00:00
Bob Halley
ce07d4eaac add dispatch event type 1999-06-28 23:36:39 +00:00
Bob Halley
bf647f10f6 include socket.h 1999-06-28 23:36:19 +00:00
Bob Halley
137ae8a892 add DNS_R_MOREDATA 1999-06-28 23:36:00 +00:00
Bob Halley
cccd92df7e move declaration of dns_dispatch_t to dns/types.h 1999-06-28 21:33:29 +00:00
Andreas Gustafsson
ef486d2e8e fixed misleading comment 1999-06-28 07:01:24 +00:00
Michael Graff
4c208bd46f add dns_message_peekheader() 1999-06-25 01:05:27 +00:00
Bob Halley
96754ed7b4 put msgcat init in lib.c 1999-06-23 22:28:27 +00:00
Michael Graff
54a64ec428 checkpoint 1999-06-18 23:54:59 +00:00
Bob Halley
0252805805 add missing .h files 1999-06-18 22:38:55 +00:00
Bob Halley
e4e071ae12 unified result type support 1999-06-18 22:35:18 +00:00
Andreas Gustafsson
db854ef77b dns_db_findrdataset() documentation cut-and-paste-o 1999-06-18 06:54:41 +00:00
Michael Graff
a8dcebd041 checkpoint 1999-06-18 02:01:42 +00:00
Andreas Gustafsson
df4ee26988 clarified some comments 1999-06-17 05:53:53 +00:00
Bob Halley
ca67883a66 cache trust level support 1999-06-16 23:47:09 +00:00
Bob Halley
926cde044f allow forcing or merge; unchanged support; add subtraction 1999-06-16 21:03:07 +00:00
Bob Halley
a7e185ff3f Add dns_db_subtractrdataset().
Add DNS_R_UNCHANGED results for dns_db_{add,delete}rdataset().
Add merge flag to dns_db_addrdataset().
The way add and delete work should now match the .h file comments.
1999-06-16 21:02:17 +00:00
Michael Graff
b683976fbc doc change 1999-06-16 01:41:32 +00:00
Michael Graff
83f8c56f43 checkpoint 1999-06-16 01:32:31 +00:00
Michael Graff
b222ecd1c2 merge in restable.h, which is no more 1999-06-16 00:43:17 +00:00
Michael Graff
9df93ea1bf checkpoint 1999-06-15 23:47:29 +00:00
Bob Halley
72a8e39155 update 1999-06-15 23:16:06 +00:00
Bob Halley
ecb6819fdf add events.h 1999-06-12 01:08:35 +00:00
Bob Halley
6f5c11ea91 add dns_name_dup() and dns_name_free() 1999-06-12 01:08:16 +00:00
Bob Halley
e51923a61f add some resolver types 1999-06-12 01:06:21 +00:00
Bob Halley
85b8ee426e add 1999-06-12 01:06:13 +00:00
Michael Graff
ae1c7c5d44 define dns_messageid_t and use it where appropriate 1999-06-11 23:34:50 +00:00
Andreas Gustafsson
5d02c5ee4c added dns_opcode_notify 1999-06-09 12:12:44 +00:00
Andreas Gustafsson
0c8649cea9 further hiding of dns_rdata_textctx_t 1999-06-09 07:13:33 +00:00
Andreas Gustafsson
7ab0e69f61 dns_rdata_textctx_t is internal and should not appear in dns_rdata_totext() argument list 1999-06-08 20:47:31 +00:00
Andreas Gustafsson
328b755376 typo; clarification 1999-06-08 13:25:27 +00:00
Andreas Gustafsson
5fc7ba3e1a added dns_db_dump(), $DATE, and supporting changes 1999-06-08 10:35:23 +00:00
Michael Graff
f7606b8669 clean up documentation 1999-06-03 23:00:10 +00:00
Michael Graff
1f6b20978a formatting nit 1999-05-21 00:48:27 +00:00
Michael Graff
d773adf65c add attributes and define one flag for rendering code 1999-05-21 00:48:20 +00:00
Bob Halley
6957b87f93 add dns_name_equal() 1999-05-18 22:05:40 +00:00
Michael Graff
70fd62761d use linked lists for items returned from loanout 1999-05-14 23:19:12 +00:00
Michael Graff
438d7099d1 Implement name, rdata, rdatalist, rdataset loanout from message resources 1999-05-14 22:22:49 +00:00
Michael Graff
97e7d389d5 Clean up after code review 1999-05-14 17:52:11 +00:00
Bob Halley
a243bbac56 types.h 1999-05-13 22:55:02 +00:00
Michael Graff
2726950412 parse dynamic updates, and tsig's right 1999-05-12 19:32:13 +00:00
Bob Halley
336182859c make dbtables reference counted objects 1999-05-11 23:18:37 +00:00
Mark Andrews
94a3bcd132 dns_rdata_tostruct() may require memory to be allocted and hence
it will need to be freed, dns_rdata_freestruct().
	Changes to implement this.

	Added C++ support to rdatastruct.h
1999-05-07 03:24:15 +00:00
Bob Halley
6e8ec359a4 add expirenode support 1999-05-06 00:32:32 +00:00
Bob Halley
7f705ac9a2 addrdataset now optionally returns the added rdataset 1999-05-05 22:57:20 +00:00
Mark Andrews
4fd3e3482c dns_rdata_tostruct() conversion 1999-05-05 01:55:13 +00:00
Mark Andrews
c1e7aff941 Implement compression pointer rollback.
dns_compress_backout() -> dns_compress_rollback()
1999-05-03 03:07:16 +00:00
Michael Graff
d20401b765 Get the query/response flag in the right place, and make named return
SERVFAIL on all replies again, until I fix up the database stuff again.
1999-05-01 18:07:52 +00:00
Michael Graff
8d6024e7cf Move the flags on dns_rdataset_totext() to be together, and make a
matching change to dns_rdataset_towire()
1999-04-30 21:15:02 +00:00
Michael Graff
1d7987f422 checkpoint 1999-04-30 07:53:07 +00:00
Michael Graff
69be7837c9 teach dns_rdataset_towire() about the no-rdata-or-ttl trick so it will work
for rendering the questions as well as the other sections.
1999-04-30 07:08:55 +00:00
Michael Graff
ded7456a4d Implement searching for a name in a section. 1999-04-30 06:13:07 +00:00
Michael Graff
e690d225ad Make named compile, and start on using message code. This isn't done yet. 1999-04-30 05:42:06 +00:00
Michael Graff
14bc0e48c9 names link rdatasets, not rdatalists now 1999-04-30 00:18:19 +00:00
Michael Graff
d331092fdd Add a flag to dns_rdataset_totext() to turn on/off 'question format' 1999-04-30 00:17:56 +00:00
Michael Graff
fccf7905e8 snapshot working message parsing 1999-04-30 00:17:15 +00:00
Michael Graff
f92381fe0f Allocate DNS_R_FORMERR 1999-04-29 08:19:33 +00:00
Michael Graff
e223094b22 checkpoint 1999-04-29 08:18:57 +00:00
Michael Graff
d688386936 checkpoint 1999-04-28 03:19:58 +00:00
Michael Graff
f9df80f434 snapshot work 1999-04-27 02:24:11 +00:00
Bob Halley
bd53af8229 add dns_name_clone() 1999-04-24 02:03:07 +00:00
David Lawrence
605ae28c5a dns_name_split() 1999-04-23 04:58:43 +00:00
Michael Graff
89a90040d5 message rework 1999-04-22 20:12:44 +00:00
Andreas Gustafsson
2ff9be15ef cut-and-paste bug in dns_rdatasetiter_t documentation 1999-04-21 08:16:07 +00:00
Bob Halley
302d9bebb5 require added rdatasets to be in the same class as the database 1999-04-20 22:31:39 +00:00
Bob Halley
349bc6f0fb add dbtable 1999-04-20 22:27:03 +00:00
Bob Halley
d94c5ba48b add class; minor cleanups 1999-04-20 22:26:50 +00:00
Bob Halley
48481c9b6e add dns_db_class() 1999-04-20 22:26:12 +00:00
David Lawrence
9efc87f857 Added level_matches to chains for rbtdb support. 1999-04-20 18:11:07 +00:00
Bob Halley
b8862d5130 add dns_db_attachversion() 1999-04-19 22:51:48 +00:00
Bob Halley
ca3b094a06 add not-already-paused requirement to pause method 1999-04-17 01:37:12 +00:00
Bob Halley
6bb7b678f5 do not pass the version to dns_db_createiterator() 1999-04-16 21:28:00 +00:00
Bob Halley
a8166bf1be versions are no longer part of dbiterators 1999-04-16 21:27:26 +00:00
Bob Halley
828870c41a lint 1999-04-16 21:26:41 +00:00
David Lawrence
ec80744ad6 The ADD_ANCESTOR macro now checks for the required memory, since it is used
in a lot of places now.  It _returns_ if it fails to get the necessary memory,
so any function using it should be returning a dns_result_t.

chain_name moved toward start of file, for inlining by findnode.

move_chain_to_last broke out some functionality of dns_rbtnodechain_last
(which now calls it), also for the benefit of findnode.

dns_rbtnodechain_init on the chain used by addnode.

All of the new_foundname concatenation gook was removed from findnode,
which now just sets foundname by using chain_name.

The chain set up by findnode points to the predecessor when the searched
for name is not found.

nodechain_current was changed to take name, origin and node parameters while
returning a dns_result_t.  This allows the chain returned by findnode to
be named.

The nodechain_{first,last,prev} use nodechain_current to set their
names and origins.  nodechain_next does not need it because it will never
have to do the "set the origin to '.' and remove '.' from names in the
root level" bit.  The root level will never be more than one name, and
everything in the megatree is a successor to that node, so 'next' never
reaches the root level.
1999-04-16 16:12:15 +00:00
David Lawrence
6d74580f08 Documentation for chains. 1999-04-14 14:39:15 +00:00
Bob Halley
8259b7b150 API simplification 1999-04-14 02:33:19 +00:00
Bob Halley
c9a8413dcb Require that only the last reference of a writable version may be committed. 1999-04-13 01:54:02 +00:00
Bob Halley
46d74dd316 fix typo 1999-04-10 00:34:18 +00:00
David Lawrence
33950f0a02 Preliminary work on iterators. 1999-04-09 15:21:15 +00:00
Bob Halley
0370190a68 REQUIRE that target is a valid name in dns_name_getlabelsequence() 1999-04-09 01:27:54 +00:00
Bob Halley
63e6086ef9 pass time to routines which add or create rdatasets 1999-04-09 01:10:19 +00:00
Bob Halley
aa9f70c1e1 add now 1999-04-09 01:09:23 +00:00
Michael Graff
a6a0f27083 msg.h -> message.h, and dns_msg* to dns_message* 1999-04-08 21:13:31 +00:00
Bob Halley
3c11c87769 update comments 1999-04-06 04:15:49 +00:00
Michael Graff
68221c823d add msg functions 1999-04-06 02:18:08 +00:00
Bob Halley
b4055b9666 preliminary dns_db_find() comments 1999-04-05 20:39:50 +00:00
Bob Halley
6e077ae73c add DNS_R_ZONECUT 1999-04-05 20:11:30 +00:00
David Lawrence
da1eb108c6 rbtnode's callback member renamed find_callback. 1999-04-01 15:57:48 +00:00
Bob Halley
ced5499494 add dns_db_find 1999-04-01 04:03:22 +00:00
Bob Halley
d176cbca5b checkpoint 1999-04-01 04:02:33 +00:00
Bob Halley
5bfea18ff8 add dns_rdataslab_merge 1999-04-01 04:00:39 +00:00
Bob Halley
e7b724c23e result types for database searches 1999-04-01 03:59:49 +00:00
David Lawrence
5f50687f61 Changes from Bob, best described in his own barely-edited words:
I added support for the full search algorithm to the RBT database
  code.  The database has some special needs in searching, in particular
  certain nodes need to be examined before the DOWN pointer is followed.

  I solved this problem by adding a 'callback' bit to the node structure.
  When findnode is called, the caller can supply a callback.  Before we go
  DOWN at a node, we call the callback if the callback bit is set at the
  node.  If the callback returns DNS_R_CONTINUE, we proceed.  Otherwise, we
  will stop right there and return what the caller said to return.  I
  added an 'empty_data_ok' flag to findnode as well, so that nodes with
  empty data can be made candidates for partial match status.

  I also wanted to make dns_rbtnodechain_t public, so that a chain could
  be allocated on the stack by the caller.  I added two routines,
  dns_rbtnodechain_init() and dns_rbtnodechain_reset() to work with them.
  The latter routine frees any dynamically allocated memory associated with
  the chain.  The chain structure now contains the memory context.  I also
  moved get_ancestor_mem() and put_ancestor_mem() up in the file, so that
  inlining could be more effective.

  In the nits department, you wrote

                  *node = result == DNS_R_SUCCESS ? current : NULL;

  In the future, please write this instead (the patch has this change in it):

                  if (result == DNS_R_SUCCESS)
                          *node = current;
                  else
                          *node = NULL;
1999-04-01 03:15:54 +00:00
Michael Graff
f9df3b7b03 typo 1999-03-30 03:45:46 +00:00
Michael Graff
952c9d12d0 add DNS_R_MOREDATA for msg library 1999-03-30 03:45:11 +00:00
Michael Graff
b1ddf33030 add msg.h, will change as needed, but Brian needed this now 1999-03-30 03:43:00 +00:00
David Lawrence
194dda8c56 new possible return code for dns_rbt_addnode, DNS_R_NOSPACE. It means
that adding the name would create too many logical levels in the
tree of trees.
1999-03-30 01:57:12 +00:00
Mark Andrews
5f78628b28 Add DNS_R_BADTTL. 1999-03-22 06:18:34 +00:00
David Lawrence
a685d9c3b6 Preliminary implementation of db mounting. 1999-03-18 19:37:30 +00:00
David Lawrence
194f54f4da New parameter to dns_rbt_find{name,node} will return the full dns_name_t
of the node that is found.

Avoids doing any memory allocation when building ancestor chain in 99%
of the cases.
1999-03-16 16:10:36 +00:00
David Lawrence
cdd824cc88 documentation updates.
removed some print support function declarations; made static to rbt.c.
1999-03-12 05:01:42 +00:00
David Lawrence
7f9a18ab45 Move the data pointer further down in the struct, near the second set of
bitfields that are used by RBT DB.
1999-03-11 21:15:12 +00:00
Bob Halley
0cc67b5a2a add DNS_R_UNCHANGED 1999-03-11 20:06:56 +00:00
David Lawrence
f036af2c71 rbtnode struct adapted with more bitfields to represent color,
name attributes, name length, offset length, and number of bytes
of "padding" that are left over when a node is split.

adjusted node splitting algorithm to preserve the original location
of the lower portion of the split node (eg, when a node has "a.b" as
its name and is split into "a" and "b", "a" retains the same address
space as "a.b".)
1999-03-11 18:54:31 +00:00
Bob Halley
efe6d8f066 add dns_db_allrdatasets 1999-03-11 06:00:22 +00:00
Bob Halley
b70e90d44f make current return void 1999-03-11 05:59:40 +00:00
Bob Halley
184aadebb8 rdataset.h is not required 1999-03-11 05:58:56 +00:00
Bob Halley
4054230359 remove old rdataiterator; add rdatasetiter 1999-03-11 05:58:32 +00:00
Bob Halley
84c3294183 improved concatenation 1999-03-11 00:44:17 +00:00
Bob Halley
d7eef25fbe rdataset iterator support 1999-03-11 00:43:43 +00:00
Bob Halley
7a9ded7b5f minor cleanups 1999-03-11 00:43:04 +00:00
Mark Andrews
de10b83a23 * local label offset 255 is reserved.
* don't add domainnames with local compression pointers as
	  valid global compression targets unless edns is high enough.
1999-03-11 00:26:21 +00:00
Bob Halley
4a8b521fd7 remove typedef; add dns_fixedname_name() 1999-03-08 19:31:48 +00:00
Bob Halley
84d3cd8fed add dns_fixedname_t 1999-03-08 19:31:30 +00:00
Bob Halley
8c65ae482a db iterator support 1999-03-08 19:00:55 +00:00
Bob Halley
dbef4f7fb7 add 1999-03-08 19:00:11 +00:00
Bob Halley
544021d7e1 add dbiterator.h and fixedname.h 1999-03-08 18:59:27 +00:00
Bob Halley
ce3761f64d add dedicated buffer support; cleanups to dns_name_concatenate() 1999-03-08 18:55:28 +00:00
Bob Halley
4c154a9f38 add 1999-03-08 18:53:44 +00:00
Bob Halley
ddbbc5a1c9 add dns_dbiterator_t 1999-03-08 18:51:51 +00:00
Bob Halley
0b7c2a096d add DNS_R_NEWORIGIN 1999-03-08 18:51:14 +00:00
Bob Halley
4c1132f344 update copyright 1999-03-06 04:12:06 +00:00
Bob Halley
097c31fdea add dns_db_printnode 1999-03-05 23:25:44 +00:00
David Lawrence
587fc7b519 Revised dns_rbt_findname and dns_rbt_findnode to find the closest match
when an exact match cannot be found.  This changed the calling interface,
which necessitated changes to rbtdb.c and compress.c.
1999-03-04 21:03:29 +00:00
David Lawrence
f85b8869df new result type, DNS_R_PARTIALMATCH, for dns_rbt_find* 1999-03-04 20:55:57 +00:00
Bob Halley
904a573437 C++ compatibility 1999-03-04 02:48:47 +00:00
Bob Halley
ca04d3fbf9 additional assertions, C++ compatibility 1999-03-04 02:43:05 +00:00
Mark Andrews
518be7faab dns_name_cat() -> dns_name_concatenate()
Changed behaviour so that it is intuitive w.r.t. absolute names.
	If 'prefix' is absolute then 'suffix' must be NULL.
	If 'prefix' or 'suffix' is absolute then the result is absolute.
1999-02-26 00:25:12 +00:00
Mark Andrews
d0221bfa6a Added Contract Comments 1999-02-25 01:37:03 +00:00
Mark Andrews
1ef8965366 Add decompression. 1999-02-24 06:31:35 +00:00
Mark Andrews
f257e9369c dns_name_cat only returns a absolute name if one of it's inputs
is absolute
1999-02-23 02:25:41 +00:00
Mark Andrews
52637f592f Add wire compression. 1999-02-22 07:24:05 +00:00
Mark Andrews
2429685db2 Removed trailing comma. 1999-02-22 01:06:26 +00:00
Mark Andrews
ad883ba085 Protect from multiple calls by #ifndef/#define/#endif. 1999-02-22 00:53:19 +00:00
Bob Halley
86cbdf5783 update .h file installation lists 1999-02-18 01:26:24 +00:00
Bob Halley
e8b2131478 contents moved to isc/region.h 1999-02-16 20:08:24 +00:00
Bob Halley
02083e881d Improve dns_name_fullcompare() comment. 1999-02-16 08:28:58 +00:00
Bob Halley
2aa970ccec add dns_name_fullcompare(); update comments 1999-02-16 08:18:56 +00:00
Bob Halley
a866eaa4ac add dns_namereln_t 1999-02-16 08:17:45 +00:00
Mark Andrews
19d365e444 Added missing REQUIRE()'s to dns_rdata_*().
Restored origin to dns_rdata_totext().

	Made include file comments more relevent.
1999-02-16 02:54:18 +00:00
Mark Andrews
b5819ca3eb dns_name_fromwire() should have been using up to the end of the
active region, not the end of the remaining region.

	bin/named/wire_debug.c bin/tests/wire_test.c adjusted for above
	change.

	dns_name_fromwire() was not computing nrem and nused correctly
	for bitstream labels.
1999-02-15 23:59:36 +00:00
Mark Andrews
7c0539bea5 Created dns_name_rdatacompare() to do DNSSEC rdata comparisions
as opposed to DNSSEC owner name comparisions of names.  Changed
	all rdata types that were using dns_name_compare() to use
	dns_name_rdatacompare().
1999-02-15 05:44:22 +00:00
Mark Andrews
035504dbd8 Added new error code DNS_R_UNEXPECTEDTOKEN, DNS_R_BADBASE64.
Adjusted function to use the new error codes.

	Changed some INSIST -> REQUIRE.

	Mapped ISC_R_NOMEMORY -> DNS_R_NOMEMORY for isc_lex_gettoken() result.
1999-02-12 03:08:44 +00:00
Bob Halley
48e6ddcb8a standard comments; API cleanups 1999-02-11 04:55:03 +00:00
Bob Halley
eec229f176 remove dns_addmode_t 1999-02-11 04:54:31 +00:00
Bob Halley
cd9999a958 add comments, move color to avoid locking problem 1999-02-10 19:05:40 +00:00
Mark Andrews
bfc4767894 Additional description of function 1999-02-10 05:45:00 +00:00
Mark Andrews
8eaa2ef566 Add dns_rdatacallbacks_init(). 1999-02-10 05:22:02 +00:00
Mark Andrews
df1ba071bc New error codes.
DNS_R_NOOWNER
	DNS_R_NOTTL
	DNS_R_BADCLASS
1999-02-10 05:19:56 +00:00
Mark Andrews
82d0558893 Pass multiple callbacks in dns_rdatacallbacks_t.
Call UNEXPECTED_ERROR() when returning DNS_R_UNEXPECTED.
1999-02-09 08:02:21 +00:00
Mark Andrews
b8ea456f92 Failure to pass a valid IPv6 address now returns DNS_R_BADAAAA. 1999-02-09 07:52:32 +00:00
Bob Halley
1630fce031 performance enhancements, deleter arg 1999-02-06 01:27:35 +00:00
Bob Halley
c5839c39bd add attributes; fix origin copy problem and build offset table in _fromtext() 1999-02-06 01:26:00 +00:00
Bob Halley
f150692ba3 name change 1999-02-06 01:18:18 +00:00
Bob Halley
e800570a5a add dns_rdataslab_size(); remove dns_rdataslab_tordataset() 1999-02-06 00:07:09 +00:00
Bob Halley
1366b7833c allow case insensitive hashing 1999-02-06 00:03:19 +00:00
Mark Andrews
54c26ab21c dns_cert_{to,from}text()
dns_secalg_{to,from}text()
1999-02-05 00:05:46 +00:00
Mark Andrews
5901928ef8 fix up TKEY 1999-02-04 07:00:32 +00:00
Mark Andrews
8d3e74b168 gen to generate dns_rdata{type,class}_{type,class}
dns_rcode_{to,from}text()
	TKEY was missing the Algorithm
1999-02-04 06:38:43 +00:00
Mark Andrews
f9d7040e8d TSIG initial implementation. 1999-02-04 01:06:40 +00:00
Mark Andrews
3a4ec3da9f atob_tobuffer and btoa_totext 1999-02-03 06:01:32 +00:00
Bob Halley
a99979c686 add dns_db_origin 1999-02-01 21:21:35 +00:00
David Lawrence
8d320be20d name length removed from structure; value is stored in single byte immediately
after the structure.

color stored in single bit

references bitfield width decrease by one

typedef for a node_chain structure, used by dns_rbt_findnode

dns_rbt_create takes a new second argument that is a pointer to a function
which frees node data when the node is deleted.

dns_rbt_addnode provided to return the node that was added.
1999-01-31 00:32:51 +00:00
Bob Halley
ccbfddc70e dns_rdataset_towire() now returns the number of RRs added to target 1999-01-30 05:01:01 +00:00
Bob Halley
721d4541c3 add locknum 1999-01-29 22:19:57 +00:00
Bob Halley
e496615043 add private4 and private5 1999-01-29 22:19:38 +00:00
Bob Halley
b03b67a6f1 add base, dns_db_load 1999-01-29 07:03:42 +00:00
Bob Halley
1ccbfca64a add preliminary db support 1999-01-28 23:53:03 +00:00
Bob Halley
2cd0c38115 fix typo 1999-01-28 23:52:24 +00:00
Bob Halley
bcfcece57e add dns_name_hash 1999-01-28 23:52:00 +00:00
Bob Halley
54a58e494c db additions 1999-01-28 23:51:12 +00:00
Bob Halley
c5bd4120ee add dirty and references 1999-01-28 23:50:55 +00:00
Mark Andrews
923e2ea400 dns_load_master()'s callback last arguement is now void * rather
than isc_mem_t * to provide a general mechanism to pass context to
	the call back.  dns_load_master() has an additional arguement to
	support this.  to get the old behaviour set the arguement, private,
	to the same value as mctx.
1999-01-28 22:32:45 +00:00
Mark Andrews
bdc5b485bc ignoire enum*.h 1999-01-28 05:31:03 +00:00
Mark Andrews
0c67279acb Added soacount and nscount 1999-01-28 05:03:25 +00:00
Mark Andrews
ffe74cc719 Add KEY, SIG and NSAP rdata type. SIG is not complete.
Add master file reader, master.c master.h, incomplete.

	gen.c was not generate correct include file, SWITCHXXX macros were
	being terminated early if last RR type was class specific.

	Added base64 support to rdata.c.
1999-01-27 13:38:21 +00:00
Michael Graff
cd82aa8fa3 implement and build dns_rdataslab_fromrdataset() 1999-01-27 08:44:10 +00:00
Michael Graff
edd4f79b4b fill in documentation on dns_rdata_towire() 1999-01-27 05:54:05 +00:00
David Lawrence
c4c843edb3 Basic deletion works again. Parent pointers have been expunged from
all the code.
1999-01-27 01:48:55 +00:00
David Lawrence
f8424fc7b3 Fixed a couple of names for ISC coding conventions. 1999-01-26 13:23:23 +00:00
Bob Halley
1a148d1bcc change namespace to db 1999-01-26 08:22:06 +00:00
David Lawrence
5a2f873360 Source files renamed from "redblack" to "rbt". 1999-01-25 15:47:28 +00:00
David Lawrence
73d62a89f1 A variety of changes.
dns_rbt_node_t changed to dns_rbtnode_t to match ISC conventions.

  main() test routine and support functions removed, to be put in
    bin/tests/rbt_test.c

  adding a node and rotating left/right taught to not use parent pointers.

  deletion disabled because it currently does not know how to not use
    parent pointers, and since they are not being maintained by insertion,
    deleting has no prayer of working.

  several isc_result_t returns changed to dns_result_t.
1999-01-25 15:46:30 +00:00
David Lawrence
10c05796f2 Two new result types, "already exists" and "not found". 1999-01-25 15:41:22 +00:00
Mark Andrews
44a966dff6 Added WKS. 1999-01-21 06:02:15 +00:00
David Lawrence
f389bc2c9e redblack.c include/dns/redblack.h
Initial (committed) implementation of red/black tree of trees.

Makefile.in:
	add redblack.o to libdns.
1999-01-20 10:13:43 +00:00
Mark Andrews
3d5cad69ec Adjusted error codes.
txt_fromwire() was not coping with a zero length active buffer.
1999-01-20 05:20:24 +00:00
Bob Halley
603f92eefd use target buffer, cleanups 1999-01-20 03:06:32 +00:00
Bob Halley
6097a45fec note that active region must be set in dns_rdata_fromwire() 1999-01-20 02:40:45 +00:00
Mark Andrews
5d51e67c3b Initial "rdata" support. RFC 1035 RR types minus WKS
totext/fromtext should all work
	towire/fromwire mostly work
	tostruct/fromstruct return DNS_R_NOTIMPLEMENTED
	compare untested
1999-01-19 02:20:26 +00:00
Bob Halley
8d17f549f3 add comments 1999-01-16 01:24:10 +00:00
Bob Halley
3553422273 add namespace 1999-01-16 01:23:42 +00:00
Bob Halley
884384ec4c improve comments 1999-01-15 19:35:49 +00:00
Bob Halley
f3a8ab700b cleanups, magic 1999-01-15 08:06:41 +00:00
Bob Halley
4dfd81d8c8 add missing includes 1999-01-15 08:05:50 +00:00
Bob Halley
acb76c0ac3 add 1999-01-15 03:32:11 +00:00
Bob Halley
51957a9cb0 remove rdatalist 1999-01-15 03:31:58 +00:00
Bob Halley
1beb5e40b0 add DNS_R_NOMORE 1999-01-15 03:31:39 +00:00
Bob Halley
5619558151 add rdataset 1999-01-15 03:31:17 +00:00
Bob Halley
a9179fca23 make linkable; add rdatalist; convert to buffers 1999-01-13 19:22:53 +00:00
Bob Halley
975922093c add list types 1999-01-13 19:18:00 +00:00
Bob Halley
d57fd9900a add list field 1999-01-13 19:15:05 +00:00
Bob Halley
86131d8d7a names are now linkable; offsets is optional 1999-01-09 00:33:15 +00:00
Bob Halley
9d1650c9fd minor updates; add dns_offsets_t, dns_signature_t, dns_namelist_t 1999-01-09 00:23:21 +00:00
Bob Halley
10c49cf1b5 add DNS_R_DISALLOWED 1999-01-06 20:04:08 +00:00
Bob Halley
985687b4e0 add 1999-01-06 19:29:46 +00:00
Bob Halley
77ca0b5793 API changes 1999-01-06 05:40:43 +00:00
Bob Halley
5dee047038 new codes 1999-01-06 05:39:08 +00:00
Bob Halley
94d102893a update copyrights 1999-01-04 19:47:40 +00:00
Bob Halley
38d2d0e932 eliminate dns_ types that duplicate isc_ types 1999-01-04 19:14:00 +00:00
Bob Halley
77e58a7e01 clean up and make more like name.h 1999-01-04 19:12:26 +00:00
Bob Halley
8afa9d1fcb fix text region typing 1999-01-02 21:20:03 +00:00
Mark Andrews
566f721b3a dns_name_fromregion() now stops conversion after encountering a root label. 1998-12-21 13:45:03 +00:00
Bob Halley
fcedc0b54b cleanups; switch to dns_ types 1998-12-16 01:53:36 +00:00
Bob Halley
a7b6f58693 put bitlabels back 1998-12-16 01:52:41 +00:00
Bob Halley
28767ac23c cleanups; new rdata types 1998-12-16 01:51:31 +00:00
Bob Halley
c71f625e24 add DNS_R_UNKNOWN 1998-12-16 01:50:35 +00:00
Bob Halley
8952830c4a add rdata.h rdataclass.h rdatatype.h 1998-12-16 01:49:58 +00:00
Bob Halley
c6dcc4cc98 add 1998-12-16 01:48:44 +00:00
Bob Halley
3740b569ae the great type change 1998-12-13 23:45:21 +00:00
Bob Halley
1633838b82 update copyrights 1998-12-12 20:48:14 +00:00
Bob Halley
f41f183f62 fix srcdir problems 1998-12-12 02:00:01 +00:00
Bob Halley
d0ad004424 simplify Makefiles 1998-12-12 01:35:38 +00:00
Bob Halley
863beba874 add .cvsignore files 1998-12-11 21:09:59 +00:00
Bob Halley
a5d43b7241 BIND9 Pool Creation 1998-12-11 20:10:26 +00:00
Bob Halley
0ce364191e add missing includes 1998-12-04 03:30:23 +00:00
Bob Halley
c50fd34a4e add 1998-12-04 02:27:01 +00:00