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
739ccd81b0
foundname is no longer optional in dns_db_find()
1999-08-12 07:45:58 +00:00
Bob Halley
4529cdaeda
make rdata functions static inline
1999-08-12 01:32:42 +00:00
Bob Halley
00d8179488
add dns_name_iswildcard()
1999-08-12 01:29:03 +00:00
Bob Halley
b7a1d692a1
findnode() result code was still wrong.
1999-08-11 22:08:44 +00:00
Bob Halley
176f7a135e
findnode() had design legacies from an older version of the RBT API. It
...
also failed to handle the case where it had discovered that a node didn't
exist, had unlocked and relocked the tree (into write mode), and then had
attempted to add the node and got DNS_R_EXISTS as the result. (I.e. someone
beat us in the race to create the node.) In this case, an error would have
been returned. The correct behavior is to succeed (being sure to increment
the node reference count).
1999-08-11 22:06:21 +00:00
Bob Halley
27ffc5a697
dns_master_load() is now _loadfile()
1999-08-05 22:12:38 +00:00
Bob Halley
79eec69349
define CHAOS class; put METACLASSES first so META bit is set for ANY
1999-08-05 22:11:52 +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
a8dffb6baa
add view.c
1999-08-05 22:08:24 +00:00
Brian Wellington
147fd0bdf8
dns_result_torcode missing breaks in switch
1999-08-05 20:39:21 +00:00
Bob Halley
b1bc194f94
additional data support
1999-08-03 20:55:19 +00:00
Bob Halley
89d8adb666
for good style, call dns_rdataset_first() first when dealing with questions
1999-08-03 20:54:56 +00:00
Brian Wellington
ebe3937fc0
dns_key_free seg fault
1999-08-03 19:48:10 +00:00
Andreas Gustafsson
1afdc8c2e7
dns_rdataset_towire() returned DNS_R_NOMORE after successfully rendering an empty section; should return DNS_R_SUCCESS
1999-08-03 13:30:54 +00:00
Bob Halley
f1b0e9107d
additional data support
1999-08-03 01:21:23 +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
a01f52a731
callback structure changes
1999-07-30 23:33:15 +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
Andreas Gustafsson
5195f93199
event->sender was bogus pointer
1999-07-30 13:33:47 +00:00
Andreas Gustafsson
57cf89b149
set msg->rdclass even if question section is empty
1999-07-30 13:33:14 +00:00
Brian Wellington
7fba8470c7
minor code cleanup, HMAC-MD5 bugfix
1999-07-29 17:21:23 +00:00
Bob Halley
a6ebd71eed
tweaks to dns_message_reply()
1999-07-29 01:26:53 +00:00
Bob Halley
f4e535251b
Detach from the correct task when canceling.
1999-07-28 23:25:16 +00:00
Michael Graff
11e2a221f1
hack on socket code more, trying to track down a bug
1999-07-28 23:04:33 +00:00
Michael Graff
d524cd03ec
make the isc_socket_recv() partial flag be a byte count instead, which allows
...
us to say "read at least 2 bytes" for things like a DNS packet over TCP.
1999-07-28 21:30:37 +00:00
Michael Graff
9bde328d3b
extremely minor formatting
1999-07-28 07:02:56 +00:00
Michael Graff
863563c38b
make writing use one event, too
1999-07-28 06:50:10 +00:00
Andreas Gustafsson
8c55a67a6d
null pointer dereference
1999-07-28 05:23:16 +00:00
Bob Halley
5fc1b54cc6
allow undedication of the dedicated buffer
1999-07-28 02:20:22 +00:00
Bob Halley
996028142c
update message reply support
1999-07-28 02:19:46 +00:00
Michael Graff
39fba32b02
oops, no debugging :)
1999-07-28 01:15:12 +00:00
Michael Graff
231c2cf614
use one internal event for connects and receives. Writes will be done shortly.
1999-07-28 01:07:21 +00:00
Brian Wellington
991322a2ab
A TSIG record's class should be ANY, not that of the question
1999-07-26 17:00:34 +00:00
Bob Halley
711b0bed7b
rcode was initialized incorrectly in dns_result_torcode()
1999-07-24 01:28:52 +00:00
Bob Halley
aa23c665d8
resolver checkpoint
1999-07-24 01:26:18 +00:00
Bob Halley
d8705ff90a
Break msginit() into msginitheader() and msginitprivate().
...
Put MAGIC macros into the DNS_ namespace.
Take name cleanup code from msgreset() and put it into msgresetnames().
In dns_message_create(), the intent is now specified before the returned
message pointer.
dns_message_reset() now allows an intent to be specified.
msg->header_ok is set if parsing the header succeeded, and msg->question_ok
is set if parsing the question section succeeded.
Added dns_message_reply().
1999-07-24 01:09:04 +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
613991eef6
TSIG errors are not rcodes; add BADVERS rcode
1999-07-24 01:01:08 +00:00
Bob Halley
2e715dbdc2
fix spelling error
1999-07-24 00:59:55 +00:00
Bob Halley
25e43e68b7
rcode result type support; cleanups
1999-07-24 00:59:26 +00:00
Bob Halley
dbc08baf16
move timer types to <isc/types.h>
1999-07-24 00:57:37 +00:00
Bob Halley
a0f6e78b74
add helpful macros; add ISC_RESULTCLASS_DNSRCODE
1999-07-24 00:57:26 +00:00
Andreas Gustafsson
18cd3d3db4
typo
1999-07-23 12:05:50 +00:00
Andreas Gustafsson
96594ea32e
define dns_rdataclass_none as 254, not 0 (RFC2136); remove dns_rdatatype_none for consistency
1999-07-23 09:15:10 +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
William King
ca71fc20eb
added timeout of tests, ability to run tests in a subproc to allow
...
continuation after exception generation, and general improvement
1999-07-22 14:35:12 +00:00
William King
43aa163a6a
sync with new improved version of lib/tests/t_api.h
1999-07-22 14:33:38 +00:00
Michael Graff
6f1422b81e
fix many bugs.
1999-07-22 01:34:31 +00:00
Bob Halley
67e33ba670
we were purging the wrong event ranges
1999-07-21 21:18:10 +00:00
Andreas Gustafsson
ca485ab26f
sysctl-based network interface list scanning
1999-07-21 08:07:55 +00:00
James Brister
265cfd9711
Config file yacc parser.
1999-07-20 20:19:24 +00:00
Bob Halley
2f3cfa8c02
isc_net_haveipvN to isc_net_probeipvN
1999-07-19 23:54:09 +00:00
Bob Halley
595cc914dd
lint
1999-07-19 23:54:03 +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
727524f623
simply AF_INET6 and PF_INET6 checking
1999-07-16 00:56:59 +00:00
Bob Halley
489b3eb09a
check for PF_INET
1999-07-16 00:52:58 +00:00
Bob Halley
270cd94d55
change isc_inet_ to isc_net_
1999-07-16 00:43:45 +00:00
Bob Halley
a761b4cd8d
forgot to change isc_inet_ to isc_net_
1999-07-16 00:43:18 +00:00
Bob Halley
f39ac70180
move isc_rwlock_t declaration to types.h
1999-07-16 00:28:14 +00:00
Bob Halley
81173c9bb3
inet.h is no longer relevant
1999-07-16 00:27:49 +00:00
Bob Halley
e9c5347c19
add support for inet_{ntop,pton,aton}
1999-07-16 00:27:15 +00:00
Bob Halley
fef7437f8f
add netdb.h
1999-07-16 00:26:31 +00:00
Bob Halley
0d1f8c2672
eliminate inet.h and extra sys/ includes
1999-07-16 00:25:59 +00:00
Bob Halley
0011d936a5
link in unix/ipv6.o if required
1999-07-16 00:25:19 +00:00
Bob Halley
8360c3dc0f
eliminate inet.h; do not use UNIX-specific .h files
1999-07-16 00:24:33 +00:00
Bob Halley
da4920783e
eliminate inet.h; cleanups; do not use UNIX-specific .h files
1999-07-16 00:24:04 +00:00
Bob Halley
b8e1e8f743
ensure INADDR_ANY, IN6ADDR_ANY_INIT, in6addr_any, and in6addr_loopback defined
1999-07-15 20:15:03 +00:00
Bob Halley
705a1d752e
add any and loopback support
1999-07-15 20:13:12 +00:00
Bob Halley
507fa57547
add
1999-07-15 20:12:47 +00:00
Bob Halley
c65d0c4346
add ipv6.o; search for includes in build dir include
1999-07-15 20:12:37 +00:00
Bob Halley
86bbe826f0
add protocol family
1999-07-15 20:11:35 +00:00
Bob Halley
1d29f10aef
add isc_sockaddr_v6fromin() and isc_sockaddr_pf()
1999-07-15 20:10:57 +00:00
Bob Halley
ae35d63c9d
memset structures to 0; add isc_sockaddr_v6fromin() and isc_sockaddr_pf()
1999-07-15 20:10:38 +00:00
Bob Halley
9bdb8a4008
search for includes in build dir unix/include
1999-07-15 20:09:12 +00:00
Bob Halley
acdd6cd35f
search for includes in build dirs isc/unix/include and dns/include
1999-07-15 20:08:03 +00:00
Bob Halley
50826c269d
search for includes in build dir isc/unix/include
1999-07-15 20:07:39 +00:00
Bob Halley
1471a520e5
use single-colon rule for sec and depend; gen structure .h in build dir
1999-07-15 20:06:34 +00:00
Michael Graff
3446e5e932
Don't allow responses/requests to be attached to dispatchers which are
...
shutting down
1999-07-14 22:16:19 +00:00
Michael Graff
0d3119d4d1
Generalize ISC_R_TASKSHUTTINGDOWN to ISC_R_SHUTTINGDOWN
1999-07-14 22:15:29 +00:00
Bob Halley
bed86971bf
add isc_app_onrun
1999-07-14 02:03:44 +00:00
Bob Halley
80d177d3b1
add APP event class
1999-07-14 02:03:18 +00:00
Bob Halley
55396fb3fb
add ISC_R_ALREADYRUNNING
1999-07-14 02:03:04 +00:00
Bob Halley
56b40c0185
depend support
1999-07-13 21:56:59 +00:00
Bob Halley
694c897b20
mkdep support
1999-07-13 20:12:47 +00:00
Bob Halley
332d9b3837
use isc_uint16_t, not u_int16_t
1999-07-13 19:42:25 +00:00
Bob Halley
8324aeb090
lint
1999-07-13 19:42:01 +00:00
Bob Halley
5a788b17a4
include <string.h> to get prototype for memcpy().
1999-07-13 17:26:07 +00:00
Bob Halley
1e0134b61e
sigwait() apparently blocks SIGABRT on linux, causing the main thread
...
to hang around instead of exiting if a child thread calls abort(). We now
listen for SIGABRT.
1999-07-13 02:22:11 +00:00
Bob Halley
8f0c024bf0
include <arpa/inet.h>
1999-07-13 02:01:06 +00:00
Bob Halley
b6412b0788
add
1999-07-13 01:53:40 +00:00
Bob Halley
1c724c986d
add rdataset cloning
1999-07-13 01:50:22 +00:00
Bob Halley
ef4b66d355
update isc_sockettype_t enum names
1999-07-13 01:49:33 +00:00
Bob Halley
62252f8b2e
make enum constant names agree with type name
1999-07-13 01:47:08 +00:00
Bob Halley
e7af758752
revise comment
1999-07-13 01:46:53 +00:00
Bob Halley
1ece2b413f
add isc_sockaddr_from{in,in6}
1999-07-13 01:46:15 +00:00
Michael Graff
2743e0ce08
s/dns_dispatch_destroy()/dns_dispatch_detach()/g
1999-07-13 00:25:21 +00:00
Michael Graff
5039f2cad3
don't modify the buffer passed in for peekheader()
1999-07-12 23:46:37 +00:00
Michael Graff
c6066a8e67
make this (mostly) work with tcp
1999-07-12 23:44:31 +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
e430659af6
lint
1999-07-12 19:34:46 +00:00
Bob Halley
3724ec85fb
isc_sockaddr_equal() wasn't matching sockets that really were equal because
...
it was comparing the sin_zero fields which weren't equal.
1999-07-12 18:43:53 +00:00
Bob Halley
f26747f494
event tags are now void *
1999-07-10 01:05:54 +00:00
Bob Halley
b7fe872457
the tag field is now obsolete
1999-07-10 01:04:12 +00:00
Bob Halley
8a4f36567a
add unsending and sendanddetach
1999-07-10 01:00:55 +00:00
Bob Halley
ad555ae689
Shutdown now implicitly occurs if there are no references to a task
...
and its event queue is empty.
The DONEOK flag is forced to true if there are no references to a task,
its event queue is empty, and it is shutting down.
Add isc_task_unsend() and isc_task_unsendrange().
Add isc_task_sendanddetach().
Event tags are now void *.
Code cleanups.
Various shutdown bug fixes.
Make tracing messages prettier.
1999-07-10 01:00:05 +00:00
Bob Halley
9db3eaed95
the event tag is now a void *
1999-07-10 00:55:07 +00:00
Michael Graff
c869cd3d6e
clamp to max packet size
1999-07-10 00:53:57 +00:00
Michael Graff
cd5b3f4f1f
set task = NULL so we can't use it later on accident.
1999-07-10 00:21:42 +00:00
Michael Graff
212e466f42
implement tcp messages (recv part)
1999-07-10 00:15:53 +00:00
Michael Graff
04135883be
cleanup a few return codes
1999-07-10 00:15:41 +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
7f1bd55920
s/printf/XDEBUG()/g
1999-07-09 20:42:55 +00:00
Michael Graff
bd7237e653
add another REQUIRE() where it might help
1999-07-09 20:34:26 +00:00
Michael Graff
c16cc434ef
checkpoint; add dns_dispatch_getsocket() to return the socket being used
1999-07-09 20:32:12 +00:00
Michael Graff
3ce0769857
add UNEXPECTED_ERROR in one place where ISC_R_UNEXPECTED is returned.
1999-07-09 20:31:35 +00:00
Andreas Gustafsson
f8aae50268
added dns_rdatatype_ismeta(); support zero-length rdata in dns_rdata_totext()
1999-07-09 12:48:51 +00:00
Andreas Gustafsson
5cc89b11fa
added dns_rdatatype_ismeta()
1999-07-09 12:47:28 +00:00
Michael Graff
6fe411037d
checkpoint
1999-07-09 02:47:55 +00:00
Michael Graff
58efc48a96
checkpoint
1999-07-09 01:57:55 +00:00
Michael Graff
d1ba6e9180
snapshot
1999-07-09 00:51:08 +00:00
Michael Graff
0b14ebe313
checkpoint
1999-07-08 22:12:37 +00:00
Michael Graff
1ec39fc7a8
checkpoint
1999-07-08 02:50:00 +00:00
Bob Halley
2b71bc3d51
fix typo
1999-07-08 02:49:51 +00:00
Bob Halley
e08daafffc
add
1999-07-08 02:45:47 +00:00
Bob Halley
ae27cfaba3
add isc_net_haveipv[46]; cleanups
1999-07-08 02:45:17 +00:00
Bob Halley
378344fdce
add net.c
1999-07-08 02:44:52 +00:00
Bob Halley
7757bd0df7
switch to HAVEIPV6
1999-07-08 01:42:19 +00:00
Bob Halley
2fdead02e1
net.h should only be removed when distclean is made
1999-07-08 00:36:47 +00:00
Bob Halley
850cd84119
update
1999-07-08 00:32:05 +00:00
Bob Halley
e69a743c2a
use net.h
1999-07-08 00:05:32 +00:00
Bob Halley
170263fc1c
activate ipv6 support
1999-07-08 00:05:24 +00:00
Bob Halley
8267cfb7fe
add _hash
1999-07-08 00:04:56 +00:00
Bob Halley
56f6fd8362
simply _equal; add _hash
1999-07-08 00:04:44 +00:00
Bob Halley
86f2133b76
use ISC_NET_HAVESALEN instead of HAVE_SA_LEN
1999-07-08 00:03:58 +00:00
Bob Halley
7a4c7c53dc
ipv6.h support; clean up net.h
1999-07-08 00:02:59 +00:00
Bob Halley
9679032ec8
add
1999-07-08 00:02:44 +00:00
Bob Halley
e396e446c9
net.h is now generated
1999-07-08 00:02:34 +00:00
Bob Halley
a86239c7cd
isc_sockaddr_t now has a length; dev->result was not set in internal_connect()
1999-07-07 02:05:08 +00:00
Bob Halley
c8e5c5f5b4
isc_sockaddr_t now has a length
1999-07-07 02:04:27 +00:00
Bob Halley
4a3b0c4ba8
style stuff
1999-07-07 02:03:49 +00:00
Bob Halley
5d63ed8564
fix copyright
1999-07-06 23:04:54 +00:00
Bob Halley
36d4a1b3bc
add net.h; sockaddr.h and netaddr.h are now generic
1999-07-06 22:59:21 +00:00
Bob Halley
283be780d8
do not need to include sys/types.h or sys/socket.h
1999-07-06 22:58:44 +00:00
Bob Halley
08fd94c483
lint
1999-07-06 22:58:04 +00:00
Bob Halley
047079a236
sockaddr.c is now generic
1999-07-06 22:57:44 +00:00
Bob Halley
fcdd25f9dc
convert to isc/net.h
1999-07-06 22:56:25 +00:00
Michael Graff
ab0e506608
checkpoint
1999-07-06 19:32:40 +00:00
Bob Halley
1e00606f58
declare uint8_ routines
1999-07-06 19:05:24 +00:00
Andreas Gustafsson
df7f20ae77
the WKS protocol field is 8 bits, not 16
1999-07-05 05:50:52 +00:00
Andreas Gustafsson
5a219d878f
added uint8_tobuffer and uint8_toregion (for WKS bug fix)
1999-07-05 05:50:15 +00:00
Mark Andrews
e205d63cbb
Missing #include
1999-07-05 00:32:37 +00:00
Bob Halley
64e41159a9
shared library support
1999-07-03 21:07:10 +00:00
Bob Halley
434b10249f
do not install libt_api
1999-07-03 21:02:51 +00:00
Bob Halley
94a5826150
do not get the current time for an inactive timer
1999-07-03 21:00:55 +00:00
Bob Halley
c6ed713695
rdataset disassociate now returns void
1999-07-03 20:58:58 +00:00
Bob Halley
58b3ed8a34
fix a static declaration
1999-07-03 20:58:13 +00:00
Bob Halley
ae70d32b67
fix some static declarations
1999-07-03 20:57:45 +00:00
Bob Halley
1db717f2f3
preliminary question rdataset support (rendering only); DNS/ISC_R_SUCCESS fix
1999-07-03 20:57:06 +00:00
Bob Halley
dfea6f0eaa
include config.h
1999-07-03 20:55:16 +00:00
Bob Halley
2815aa70e2
checkpoint
1999-07-03 20:54:56 +00:00
Bob Halley
0cad79befc
disassociate now returns void
1999-07-03 20:53:30 +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
Andreas Gustafsson
c0de97d5db
did not compile on Alpha due to missing #include <config.h>
1999-07-03 15:07:01 +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
Andreas Gustafsson
87c5f9ae6e
subtractrdataset() failed to initialize subresult to NULL
1999-06-30 13:22:44 +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
b0cab8639f
Fix cut-and-paste problem with the debugging definition of isc_mempool_put().
1999-06-29 19:06:26 +00:00
Mark Andrews
07bd65db25
Catch certain reference after free and failure to initalise bugs
...
earlier in development rather than later.
1999-06-29 14:28:37 +00:00
Bob Halley
af4f8c7019
a different fix for the problem of the last revision
1999-06-29 07:03:17 +00:00
Bob Halley
aaf79b3599
Don't try to use res->mctx after res has been destroyed.
1999-06-29 07:00:30 +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
Bob Halley
8b1b8c29cd
include sys/sockio.h if present (makes things work on Solaris)
1999-06-28 18:30:24 +00:00
Bob Halley
38bc5e05ab
fix casting problem
1999-06-28 18:29:35 +00:00
Bob Halley
e410f46def
include netinet/in.h
1999-06-28 18:29:04 +00:00
Andreas Gustafsson
ef486d2e8e
fixed misleading comment
1999-06-28 07:01:24 +00:00
Michael Graff
5c02d3183f
add isc_sockaddr_equal()
1999-06-25 22:09:35 +00:00
Michael Graff
b456d80637
add isc_socket_gettype()
1999-06-25 01:36:52 +00:00
Michael Graff
4c208bd46f
add dns_message_peekheader()
1999-06-25 01:05:27 +00:00
Bob Halley
544f5611e1
lint
1999-06-24 22:26:50 +00:00
Andreas Gustafsson
0dae46cbc7
dns_rdataslab_subtract() bug fixes
1999-06-24 19:15:55 +00:00
Bob Halley
42a5f9c8f5
lint from alpha build
1999-06-24 17:55:41 +00:00
Bob Halley
e40324861d
remove premature checkin of resolver.o support
1999-06-23 22:29:50 +00:00
Bob Halley
96754ed7b4
put msgcat init in lib.c
1999-06-23 22:28:27 +00:00
Bob Halley
c95819d75d
If the first record in a header chain was marked IGNORE, add() would
...
incorrectly treat it as if the IGNORE attribute were not set, and the add
would not work correctly. Rdatasets marked IGNORE are now ignored.
subtractrdataset() also failed to ignore rdatasets, and didn't cover the
case where the rdataset was marked as nonexistent.
1999-06-23 19:18:51 +00:00
Bob Halley
138a6660fb
define set number
1999-06-23 03:09:24 +00:00
Bob Halley
5804af97ab
deal with unavailable result text; define set number
1999-06-23 03:08:59 +00:00
Bob Halley
d8dcd6ad46
basic NLS support
1999-06-23 02:51:39 +00:00
Bob Halley
e44cd25d3f
add isc_result_t and isc_msgcat_t
1999-06-23 02:50:03 +00:00
Andreas Gustafsson
3b40e78974
handle dynamic update meta-classes and empty rdatas
1999-06-20 08:05:56 +00:00
Michael Graff
54a64ec428
checkpoint
1999-06-18 23:54:59 +00:00
Bob Halley
109b0ba17f
fix typo
1999-06-18 23:18:50 +00:00
Bob Halley
48e26c1a80
remove DNS_R_LASTENTRY
1999-06-18 22:45:55 +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
Bob Halley
c84bdaa684
add once.h
1999-06-18 22:22:32 +00:00
Bob Halley
4a25a07d5b
add
1999-06-18 22:22:25 +00:00
Bob Halley
883efd713c
Don't return DNS_R_UNCHANGED from load callback
1999-06-18 22:16:06 +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
Bob Halley
422d79178c
make unsigned
1999-06-17 23:14:18 +00:00
Andreas Gustafsson
fffba6a14b
dns_rbt_addnode() was sometimes called with *nodep != NULL
1999-06-17 17:08:18 +00:00
Andreas Gustafsson
df4ee26988
clarified some comments
1999-06-17 05:53:53 +00:00
Bob Halley
d261590940
lint
1999-06-17 02:06:16 +00:00
Bob Halley
cab399250b
ISC_LIST_UNLINK now sets the link fields to the unlinked state (-1).
1999-06-17 01:56:30 +00:00
Bob Halley
e4d0c58cef
lint
1999-06-17 00:40:55 +00:00
Bob Halley
4f7990b59b
untested dns_db_subtractrdataset()
1999-06-17 00:31:58 +00:00
Bob Halley
9b6fd12d8e
subtract can now return DNS_R_UNCHANGED
1999-06-17 00:31:32 +00:00
Bob Halley
b687c057fb
lint
1999-06-17 00:30:46 +00:00
Bob Halley
ca67883a66
cache trust level support
1999-06-16 23:47:09 +00:00
Bob Halley
ee34b73efe
added ifdef notyet IPv6 support
1999-06-16 21:05:22 +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
31ccc3c07b
might as well build dispatch.c as well, even with the (temporary) errors.
1999-06-16 01:33:06 +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
d717d5600b
event purging api change
1999-06-15 23:18:44 +00:00
Bob Halley
07697f1c52
tagged event support
1999-06-15 23:18:18 +00:00
Bob Halley
3bb3f7ca61
add tag
1999-06-15 23:17:46 +00:00
Bob Halley
9a7d5570ae
use ISC_EVENT_INIT
1999-06-15 23:17:24 +00:00
Bob Halley
72a8e39155
update
1999-06-15 23:16:06 +00:00
Bob Halley
41484be055
Had ISC_R_SUCCESS instead of DNS_R_SUCCESS
1999-06-15 20:20:12 +00:00
Bob Halley
afdb3abb9b
zero interval and epoch; rename _get() to _now(); add _nowplusinterval()
1999-06-12 01:15:05 +00:00
Bob Halley
0f287538a5
use isc_time_now; allow default expires and interval
1999-06-12 01:13:22 +00:00
Bob Halley
0941b4e809
add isc_task_purgeevent
1999-06-12 01:10:32 +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
Michael Graff
2bc646508d
bitfields are your friend
1999-06-10 00:57:33 +00:00
Michael Graff
dbe7bf66ff
More simplification. internal events are now basically a plain old event.
1999-06-10 00:50:06 +00:00
Michael Graff
81231fc4c3
simplify part of socket.c -- one internal readable event for accepting
...
connections. This GREATLY simplifies cancellation, but needs testing.
1999-06-10 00:45:30 +00:00
Bob Halley
f1c294ce38
add ISC_EVENT_INIT
1999-06-10 00:18:47 +00:00
Bob Halley
96f42b3b05
support new destroy method; attributes; reorder structure members
1999-06-09 23:26:45 +00:00
Bob Halley
3f8744a28f
support for unpurgable events
1999-06-09 23:25:50 +00:00
Andreas Gustafsson
5d02c5ee4c
added dns_opcode_notify
1999-06-09 12:12:44 +00:00
Andreas Gustafsson
75ec9bc9c7
DNS_MESSAGE_OPCODE_MASK was incorrect
1999-06-09 12:06:21 +00:00
Andreas Gustafsson
c1bfdd2995
turn on ISC_LEXOPT_ESCAPE
1999-06-09 11:56:45 +00:00
Andreas Gustafsson
0c8649cea9
further hiding of dns_rdata_textctx_t
1999-06-09 07:13:33 +00:00
Michael Graff
3433c5ee69
start transition to one internal event by keeping all state in the done events
1999-06-09 02:21:19 +00:00
Michael Graff
608b132b4e
remove unnessary casts
1999-06-08 21:55:07 +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
fad44a20ee
omit parenthesis when DNS_STYLEFLAG_MULTILINE is not set
1999-06-08 20:41:31 +00:00
Andreas Gustafsson
328b755376
typo; clarification
1999-06-08 13:25:27 +00:00
James Brister
71737a4d6b
Let the user (at symtab creation time) specify an argument to be passed
...
through to the undefine action.
1999-06-08 13:02:10 +00:00
James Brister
ab5657cabf
Support bases other than 10 in numbers (using option ISC_LEXOPT_CNUMBER)
...
Fixed bug in keeping track of input line numbers inside comments.
1999-06-08 12:45:23 +00:00
Andreas Gustafsson
5fc7ba3e1a
added dns_db_dump(), $DATE, and supporting changes
1999-06-08 10:35:23 +00:00
Michael Graff
f28a94af21
comment, clean up a bit
1999-06-08 02:50:51 +00:00
Michael Graff
eb7ef395d2
implement memory pools
1999-06-08 02:38:30 +00:00
Michael Graff
47d1506e95
add ISC_MIN() and ISC_MAX()
1999-06-08 02:38:21 +00:00
David Lawrence
213a9ec2ad
Handle octal bitstrings, fixing the bug where a bitlength that encompassed
...
fewer bytes than the number of octal digits implied caused invalid names
to be generated.
1999-06-04 00:18:34 +00:00
Michael Graff
f7606b8669
clean up documentation
1999-06-03 23:00:10 +00:00
Michael Graff
08d94b539a
allow finding types and names but not returning them. This is basically an
...
existance check
1999-06-03 19:03:48 +00:00
Andreas Gustafsson
d0bfc8cafe
leap years were off by one
1999-05-27 18:03:40 +00:00
Andreas Gustafsson
3b84ea68c0
use new isc_netaddr_t type to represent network addresses
1999-05-26 06:24:54 +00:00
Andreas Gustafsson
0237695c5e
initial version of generic network address structure
1999-05-26 06:21:08 +00:00
Andreas Gustafsson
acfa3ff9c8
simplified quantize(); fill memory with nonzero values if ISC_MEM_FILL==1
1999-05-26 06:10:09 +00:00
Mark Andrews
d5850aa99c
compress_find() could return a pointer to stack memory.
1999-05-26 00:34:54 +00:00
Michael Graff
03b062e71a
minor formatting change
1999-05-25 23:18:33 +00:00
David Lawrence
d84aa53079
initialize the dbtable's rbt pointer to null before dns_rbt_create
1999-05-25 18:41:52 +00:00
Andreas Gustafsson
454bea884d
dns_message_create did not initialize m->rdatasets
1999-05-25 16:55:57 +00:00
Michael Graff
2f83b032a6
allow easy debugging of the LOCK() and other macros
1999-05-22 10:42:17 +00:00
Michael Graff
4db368e084
ooops, fix a memory leak
1999-05-21 08:05:49 +00:00
Michael Graff
3402c82442
Don't attach to socket in the done event anymore, and GC the done_event_destroy() function.
1999-05-21 07:16:13 +00:00
Michael Graff
d49555e76c
use the new rendered bit
1999-05-21 00:48:59 +00:00
Michael Graff
b12f0228b3
initialize attributes to zero
1999-05-21 00:48:45 +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
Andreas Gustafsson
f80c797d42
added network interface iterator
1999-05-20 12:31:30 +00:00
Andreas Gustafsson
0745aa7369
various bug fixes
1999-05-19 09:15:52 +00:00
Andreas Gustafsson
5dcb42f5bb
not all combinations of quoted and unquoted strings were supported in ISDN records
1999-05-19 09:14:58 +00:00
Mark Andrews
b2c1904c6f
double isc_lex_gettoken
1999-05-19 01:17:14 +00:00
Mark Andrews
55ea93b0b1
Add addition \ escape processing
1999-05-19 00:48:16 +00:00
Michael Graff
bd3ccd1c38
use dns_name_equal
1999-05-19 00:14:26 +00:00
Bob Halley
6957b87f93
add dns_name_equal()
1999-05-18 22:05:40 +00:00
Bob Halley
9b27701a8d
finish conversion to standard .h commenting conventions
1999-05-18 19:23:53 +00:00
Bob Halley
ff1a344725
add more comments and a few missing REQUIREs
1999-05-18 19:23:13 +00:00
Brian Wellington
822f6cdabb
Created isc_base64_to{text,buffer} and removed the static versions
...
from lib/dns/rdata.c.
1999-05-18 17:46:59 +00:00
Brian Wellington
71b306bf33
add isc_buffer_{get,put}uint8
1999-05-18 13:44:52 +00:00
Michael Graff
2eed8ba81c
tpyo
1999-05-17 22:56:13 +00:00
Michael Graff
17a30afad1
another cancel cleanup
1999-05-17 22:54:17 +00:00
Michael Graff
e89cd0396e
Fix a cancel problem, and use a condition variable rather than a hack
1999-05-17 22:31:26 +00:00
Mark Andrews
f0ff273b53
base and length should have been taken from tregion not target.
1999-05-17 15:40:39 +00:00
Mark Andrews
7d62ddffbb
Add escape processing to txt_fromtext
1999-05-17 15:30:03 +00:00
Andreas Gustafsson
1d978b3ba2
base64_totext() encoded 16-bit final quantum incorrectly
1999-05-17 04:49:38 +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
Andreas Gustafsson
278695c921
fixed apparent cut-and-paste-o in ISC_SOCKCANCEL_ACCEPT handler
1999-05-13 10:46:12 +00:00
Michael Graff
8f3ba5e9b2
init a var
1999-05-13 00:15:42 +00:00
Bob Halley
dd324bd791
always ignore sigpipe
1999-05-12 22:54:46 +00:00
Bob Halley
de5c46ae57
handle EINTR
1999-05-12 22:44:22 +00:00
Bob Halley
a829555ed7
linux threads support
1999-05-12 22:35:40 +00:00
Michael Graff
2726950412
parse dynamic updates, and tsig's right
1999-05-12 19:32:13 +00:00
Bob Halley
6050eb5ab4
do not wait for SIGABRT
1999-05-12 17:37:38 +00:00
Bob Halley
96f55bdc73
add app
1999-05-12 09:44:35 +00:00
Bob Halley
336182859c
make dbtables reference counted objects
1999-05-11 23:18:37 +00:00
Bob Halley
4f39360a7f
Shutdown of a task now works as follows:
...
When isc_task_shutdown() is called, any shutdown events are posted
and the task goes into shutting down state. isc_task_onshutdown()
may no longer be called.
If the task allows transition to the done state (the default), then
as soon as the task's event queue is empty the task will enter the
done state. Once the done state has been entered, events may no
longer be posted (regardless of the allowsend state). If transition
to the done state is not allowed, then the task will continue to
exist and be able to receive events.
Moved event support to event.[ch].
The final state of a task is now called "done" not "shutdown".
Created a flags variable instead of having separate booleans.
Added isc_task_allowdone() and isc_task_purgerange().
Minor tracing fixes.
1999-05-10 23:00:30 +00:00
Bob Halley
853befffcf
include eventclass.h
1999-05-10 22:52:55 +00:00
Bob Halley
b9fcdde267
add common types
1999-05-10 22:52:36 +00:00
Bob Halley
e96a9b2690
move struct typedef to types.h
1999-05-10 22:52:29 +00:00
Bob Halley
d63eb7e794
add
1999-05-10 22:52:03 +00:00
Bob Halley
44963bb00d
move eventclass stuff to eventclass.h; add event stuff
1999-05-10 22:51:49 +00:00
Bob Halley
75d597c630
add event.c
1999-05-10 22:51:19 +00:00
Bob Halley
d13284da19
allow timer to be inactive; use isc_task_purgerange
1999-05-10 22:50:31 +00:00
Bob Halley
d6b0e99380
change TASKSHUTDOWN to TASKDONE
1999-05-10 22:49:22 +00:00
Bob Halley
480ad611fe
Allow a dbiterator to be restarted (with dns_dbiterator_first()) so long
...
as an error has not occurred.
Have dns_dbiterator_first() return DNS_R_NOMORE if the tree is empty.
1999-05-10 21:21:55 +00:00
Mark Andrews
b75ba761f4
removed debugging code
1999-05-10 00:38:52 +00:00
David Lawrence
d92d2f722a
Shifting bitstring bytes for the prefix of dns_name_split didn't work
...
properly because the destination was being ANDed with the bits coming
from the next byte, rather than ORed.
1999-05-07 17:13:06 +00:00
David Lawrence
bee0bb2b68
In join_nodes, when using the space of the down node, it needs to get
...
the attributes of the joined name to correctly identify whether it
is absolute. (IE, when the first level is joined with the top level,
the node struct being used is from the first level, which is not
absolute, but the new name is absolute so the struct needs to be updated.)
1999-05-07 12:13:25 +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
Mark Andrews
189e18de11
include/dns/rdatastruct.h header (pre) and footer (suf) files.
1999-05-07 03:19:11 +00:00
David Lawrence
3c5de27363
Shoulda left the >= as >=, not >, in join_nodes. D'oh.
1999-05-07 02:47:35 +00:00
David Lawrence
56b657bfe8
update the number of PADBYTES after in join_nodes().
1999-05-07 02:42:50 +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
Bob Halley
624f397db5
add DNS eventclass
1999-05-05 22:57:02 +00:00
Bob Halley
a2d6900e46
dbiterator_current was incorrectly returning DNS_R_NEWORIGIN in some cases
1999-05-05 16:52:12 +00:00
Bob Halley
b9a2c5ddf9
add CONVERTFROMASCII
1999-05-05 16:51:05 +00:00
Mark Andrews
4fd3e3482c
dns_rdata_tostruct() conversion
1999-05-05 01:55:13 +00:00
Mark Andrews
a560a0bfb2
Implement _tostruct().
1999-05-05 00:20:36 +00:00
Mark Andrews
854d0238db
Adjust #ifdef *_H -> #ifdef *_C to reflect new file names.
1999-05-05 00:19:04 +00:00
Bob Halley
e1739e9938
do not include dns/rdatastruct.h (yet)
1999-05-03 19:56:53 +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
b02262cbcd
Fix up the condition where buffers are expended
1999-05-01 17:18:47 +00:00
Bob Halley
44aae046c3
basic test support
1999-05-01 01:41:14 +00:00
Bob Halley
754ae02cc7
disable octal bitstrings since they are broken
1999-05-01 00:48:54 +00:00
Michael Graff
41cc03374d
remove debugging crud
1999-04-30 23:37:23 +00:00
Michael Graff
bfbf3f2d77
don't use a temp buffer, it broke compression
1999-04-30 23:04:29 +00:00
Michael Graff
823e45c127
checkpoint
1999-04-30 22:35:49 +00:00
Bob Halley
7d610faf31
cache_zonecut_callback() and find_deepest_zonecut() did not check staleness
1999-04-30 22:01:26 +00:00
Michael Graff
ddd035637d
snapshot
1999-04-30 21:52:40 +00:00
Michael Graff
9440f8c902
remove a REQUIRE() I pasto-ed
1999-04-30 21:52:34 +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
5330fc09ac
tpyo
1999-04-30 21:10:07 +00:00
Michael Graff
d070219e01
clean up and start testing rendering
1999-04-30 21:09:19 +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
a920f559c3
fix up return codes in searching, and start on rendering.
1999-04-30 06:37:35 +00:00
Michael Graff
ded7456a4d
Implement searching for a name in a section.
1999-04-30 06:13:07 +00:00
Michael Graff
be3458c3da
Add checks for render/parse direction
1999-04-30 05:57:39 +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
Bob Halley
3ff8d68793
Make it clear which 'if' an 'else' belongs to.
1999-04-30 02:04:11 +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
1d11db66fa
make this build, ooops
1999-04-29 19:58:51 +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
d9e3898f8e
Add explicit element for initializer for flags, rather than spewing warnings.
...
The flags default to 0, so I set them to explicit 0 for now.
1999-04-29 06:10:27 +00:00
Michael Graff
84d79ecd50
implement isc_dynbuffer_reset()
1999-04-29 05:59:51 +00:00
Michael Graff
c45abd11bb
gen.c needs LIBS for NetBSD
1999-04-29 05:32:41 +00:00
Michael Graff
fb3dcb0b60
Use the prototypes from isc/list.h directly, rather than util.h hacks
1999-04-29 04:49:52 +00:00
Michael Graff
d688386936
checkpoint
1999-04-28 03:19:58 +00:00
Mark Andrews
1d6572f9d4
adjust #ifdef labels
1999-04-28 03:16:50 +00:00
Mark Andrews
a41d348e14
Local compression fixes to use rbt bitstrings.
1999-04-28 03:03:56 +00:00
Bob Halley
116208651c
include big mallocs in quota
1999-04-27 23:42:50 +00:00
Bob Halley
16baa70f9d
basic quota support; fix bugs in more_basic_blocks()
1999-04-27 23:20:10 +00:00
Bob Halley
e7ba603417
basic quota support
1999-04-27 23:19:43 +00:00
Michael Graff
f9df80f434
snapshot work
1999-04-27 02:24:11 +00:00
Michael Graff
9178881e1b
start on message.c
1999-04-26 21:59:36 +00:00
Mark Andrews
d44cd3fc3a
Class mismatch was not reporting the zone's class.
...
The correct class was not being passed to dns_rdata_fromtext().
1999-04-25 22:18:11 +00:00
Bob Halley
f53facef17
fix search_name initialization problems
1999-04-24 02:03:25 +00:00
Bob Halley
bd53af8229
add dns_name_clone()
1999-04-24 02:03:07 +00:00
David Lawrence
93b01c7295
Support for bitstring labels.
1999-04-23 04:59:41 +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
David Lawrence
55f6206532
a better fix than the last for dns_rbtnodechain_next
1999-04-22 14:36:30 +00:00
David Lawrence
2292bceadf
tried to ascend a level in dns_rbtnodechain_next when at top level
1999-04-22 14:16:52 +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
acab2c8094
Fixed a bug that resulted when a callback said to halt a search; the
...
level_count was decremented below zero because the found node had not
been put in the level history before the callback broke out of the search.
Added a bunch of INSISTS()s to try to catch something like that in the future.
1999-04-20 22:01:00 +00:00
Bob Halley
c91195ca6d
switch from chain.level_count to chain.level_matches
1999-04-20 18:16:27 +00:00
David Lawrence
9efc87f857
Added level_matches to chains for rbtdb support.
1999-04-20 18:11:07 +00:00
Michael Graff
441a57f959
Add support for dyamic buffers. These are allocated using
...
isc_dynbuffer_allocate() and freed with isc_dynbuffer_free(), and are
a linkable buffer type with a built-in data area.
1999-04-19 23:56:36 +00:00
Bob Halley
292c7d395e
do not try to append "." to "."
1999-04-19 23:18:08 +00:00
Bob Halley
d25999ff03
add attachversion; fix rdatasetiterator problem
1999-04-19 22:52:25 +00:00
Bob Halley
b8862d5130
add dns_db_attachversion()
1999-04-19 22:51:48 +00:00
David Lawrence
f8dd2e939e
Make sure chain_name and dns_rbtnodechain_current do not try to do
...
NODENAME() on a NULL chain->end (such as after the chain has been reset.)
1999-04-17 15:43:10 +00:00
David Lawrence
c234ac00b8
The _real_ fix for the callback_name generation problem in findnode.
...
It wasn't that chain->end was being included (it should have been) but
that the chain had already been expanded to point down a level before
the call to chain_name that needed the state of things before the
descent.
1999-04-17 15:19:45 +00:00
Bob Halley
ca3b094a06
add not-already-paused requirement to pause method
1999-04-17 01:37:12 +00:00
Bob Halley
c1737c417d
db iterator support
1999-04-17 01:36:42 +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
678bd7ab4b
Fixed handling of the name generation for callbacks in findnode.
1999-04-16 21:01:58 +00:00
David Lawrence
c40654ee44
Made addnode and findnode aware of the case where the result of the
...
comparison is "subdomain" but the full name at the existing node is
not in common with the input name -- when the last label is a bitstring
with some common bits.
1999-04-16 18:30:03 +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
Bob Halley
066ae48be3
include string.h to get memset() prototype
1999-04-14 17:40:22 +00:00
David Lawrence
6d74580f08
Documentation for chains.
1999-04-14 14:39:15 +00:00
David Lawrence
40526b8cbe
Oops, untested change of removing DNS_NAMEATTR_ABSOLUTE from names
...
in top level tree during chain moves didn't actually compile as written.
Surprise.
1999-04-14 14:12:34 +00:00
David Lawrence
dafabe62df
Changed a goto into a conditional block that works the same way.
1999-04-14 12:29:39 +00:00
David Lawrence
1adfd0a911
Top level tree always has an origin of "." and all names are relative to "."
...
in it.
chain _first and _last now work.
Other stuff I can't recall. Lots of little fiddling with chains.
1999-04-14 12:03:18 +00:00
Mark Andrews
a2b97d054f
Convert compress_find to use PARTIAL_MATCH result.
1999-04-14 06:03:15 +00:00
Bob Halley
405a4d66d7
Always lock the dbtable when operating on it.
...
Attach and detach from the db.
Simplify the API by not requiring the name to be specfied for add and remove,
and by not requiring the db to be specified for removedefault.
Calls to dns_rbt_findname were failing because stored_data was not initialized
to NULL.
1999-04-14 02:37:08 +00:00
Bob Halley
8259b7b150
API simplification
1999-04-14 02:33:19 +00:00
Mark Andrews
95f78a208a
Bring local compression into line with draft 04.
...
'dns_rootname' should be marked read_only.
Supply 'dns_rootname' with offsets.
1999-04-13 05:50:12 +00:00
Bob Halley
f2fbcd9195
Version locking fixes:
...
The commit_ok and changed_list were sometimes being accessed without
holding the lock.
Comments in structure.
Do not allow an rdataset to be added to a non-writer version.
Do not allow closeversion() to commit a writer version unless the ref count
is one.
We were not incrementing the version ref count when creating an rdataset
iterator.
1999-04-13 01:58:17 +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
a3e2ec2dfe
dns_db_deleterdataset() needed the same REQUIRE fix as dns_db_addrdataset()
1999-04-13 01:52:58 +00:00
Bob Halley
46d74dd316
fix typo
1999-04-10 00:34:18 +00:00
David Lawrence
675f7c879a
Do not return the full name when chain iterating, just relative to the origin.
1999-04-09 22:55:20 +00:00
David Lawrence
c9eae31249
That last checkin was dain-bramaged, because I was thinking solely of
...
what happens at ".". For most origins, they do NOT include themself in
a zone file ... that is, the record for "rc" appears in the $ORIGIN for
".vix.com."
1999-04-09 22:49:46 +00:00
Bob Halley
063a4a82f6
Since rollback_node() no longer frees rdatasets, we must mark the node as
...
dirty if anything was rolled back, because otherwise the node cleaning
routine will not run when the node reference count becomes 0.
1999-04-09 19:25:55 +00:00
Bob Halley
88c2d3ad0d
Eliminate the "prev" pointer in the rdataset header.
...
rollback_node() incorrectly required that node->references == 0. We cannot
assume that a node has no references when an update is rolled back. We now
mark any rolled back rdatasets with the RDATASET_ATTR_IGNORE attribute. When
the node eventually has a zero reference count, IGNOREd rdatasets will be
cleaned up. In the meantime, they will be ignored.
1999-04-09 19:18:04 +00:00
Bob Halley
5c6d49484b
fix incorrect REQUIRE statement in dns_db_addrdataset()
1999-04-09 19:14:06 +00:00
David Lawrence
93a0e33450
Include the origin node in it its own cut. IE, when coming through
...
ab.rc.vix.com, bb.rc.vix.com, ... back to rc.vix.com, don't declare
a new origin until _after_ rc.vix.com has been returned.
1999-04-09 15:27:58 +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
0b1f55d73f
Pass time to routines which add or create rdatasets.
...
Add TTL aging and removal of stale rdatasets (cache databases only).
1999-04-09 01:12:30 +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
Bob Halley
120e76fc54
add stdtime
1999-04-09 01:08:46 +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
Bob Halley
95e0ab8284
add glue validation
1999-04-06 04:15:29 +00:00
Michael Graff
68221c823d
add msg functions
1999-04-06 02:18:08 +00:00
Bob Halley
0990426ddf
fix some locking problems
1999-04-05 23:59:26 +00:00
Bob Halley
fd03e61541
In zone_find(), deal with the ickiness when the desired name is a delegation
...
point. Specifically, we return a delegation in this case, except if glue is
OK, or if the caller is looking for NXT or KEY records.
SIG records are going to be a special case, so do not deal with them in the
zone find routine.
1999-04-05 20:51:50 +00:00
Bob Halley
e7e2e948e3
add REQUIRE statements for dns_db_find()
1999-04-05 20:47:20 +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
Bob Halley
10e905959e
When searching a cache db, we did not look for an NS record at the node, so we
...
sometimes did not find the deepest zone cut. E.g. If you look for A records at
"com." then you should get a delegation for "com." and not one for ".".
In the various rdataset find routines, we sometimes attempted to bind the
rdataset even if the rdataset pointer was NULL.
Remove inline from a few functions. Add inline to a few others.
1999-04-02 03:37:24 +00:00
David Lawrence
da1eb108c6
rbtnode's callback member renamed find_callback.
1999-04-01 15:57:48 +00:00
Bob Halley
1b90a27c4d
Implement zone and cache versions of dns_db_find().
...
Add incomplete and not-yet-working dbiterator implementation.
Improve node reference count handling.
Opening and closing the current version more than once was breaking
due to incorrect garbage collection.
Some rbtdb values had not been getting initialized.
Improvements to add procedure.
1999-04-01 04:11:33 +00:00
Bob Halley
9e2fa382e8
remove unneeded include
1999-04-01 04:03:56 +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
0180ccf72c
require non-NULL methods on accessors
1999-04-01 04:01:30 +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
Bob Halley
6d356e35c6
add author info
1999-04-01 03:59:27 +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
Bob Halley
8bdb4ab2d1
only UNLOCK and then LOCK if actually sending an event
1999-04-01 01:09:28 +00:00
Michael Graff
e0834816d7
clean up comments
1999-03-30 06:22:28 +00:00
Michael Graff
d4aa1c590e
more fixes.
1999-03-30 06:18:45 +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
David Lawrence
84f8cc7e22
Initialize the node's attributes with the name's attributes. This
...
is currently fine, because there are only two attribute flags a name
can have, one of which the node definitely needs to have set, and the
other of which is functionally irrelevant (because it happens to be set
by the NODENAME macro, namely the read-only flag). This might not
be the right thing to do in the future when more name attributes get
added, but we'll cross that bridge if we get to it. (_Some_ change was
necessary because the node's attributes was not properly initialized when
created, and under certain circumstances this ended up triggering an
exception in the dns_name_* functions.
Watch for level overflow during dns_rbt_addnode(). Returns DNS_R_NOSPACE,
which is probably not the right thing.
Comment cleanups.
1999-03-30 01:56:01 +00:00
Michael Graff
cc60c973f4
comment for bob :)
1999-03-29 23:56:48 +00:00
Michael Graff
b73eb944cd
Changes talked about at IETF -- code cleanup, result code cleanup, etc
1999-03-29 23:56:06 +00:00
Michael Graff
1b1bc2a9d5
mention that UDPs are always "partial read"
1999-03-29 20:02:41 +00:00
Bob Halley
f4f2ef7d80
fix minor textual nits
1999-03-24 00:29:54 +00:00
Mark Andrews
0d46301a6e
NBUF was one to small.
...
GETTOKEN is now a simple macro that calls gettoken (static inline).
1999-03-23 00:04:01 +00:00
Mark Andrews
dd082cc554
Added BIND 8.x ttl processing.
...
Allow ttl / class to be specified in any order.
Suppress duplicate rdata.
Additional commentry.
1999-03-22 06:21:29 +00:00
Mark Andrews
5f78628b28
Add DNS_R_BADTTL.
1999-03-22 06:18:34 +00:00
David Lawrence
d737609b91
Allow space for 255 levels in rbtnodechain because of bitlabels.
1999-03-18 21:32:51 +00:00
David Lawrence
d09197467b
Principle Authors: DCL
1999-03-18 21:21:31 +00:00
David Lawrence
7ab725ec13
Converted @@@ to XXX per ISC convention for unresolved issues.
1999-03-18 20:32:32 +00:00
David Lawrence
9f1a1007e0
Converted @@@ to XXX in comments about unresolved issues.
1999-03-18 20:30:28 +00:00
David Lawrence
c77dc869b3
Added comments about locking in dns_dbtable struct.
1999-03-18 20:06:26 +00:00
David Lawrence
a685d9c3b6
Preliminary implementation of db mounting.
1999-03-18 19:37:30 +00:00
David Lawrence
f39a760ab0
formatting fixups (a few lines were over 79 char).
1999-03-16 22:57:32 +00:00
David Lawrence
eca5913a47
Made calls to dns_rbt_find{name,node} compatible with the just-committed
...
changes to rbt.c by passing a NULL pointer for the dns_name_t that
receives the full name of the node that is found. There is probably something
better to do, but this just keeps things compiling.
1999-03-16 16:15:44 +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
bd1190c84b
no more need for mem_failure in rbt_nodechain_t, since findnode now
...
returns a dns_result_t.
dns_rbt_created requires deleter_arg NULL if deleter is NULL.
dns_rbt_addnode always returns DNS_R_EXISTS if the node is found, regardless
of if it has data.
dns_rbt_addname will add the data and return SUCCESS if addnode says
EXISTS but there is no data at the node.
make sure memory is freed even when get_ancestor_mem to reallocate fails.
partialmatch returned by findnode must have data associated with it.
fixed up deletename; prematurely exited without freeing chain memory if
the node was not found. made deletename responsible for identifying whether
a node could be removed rather than zapnode.
turned a few of the print support functions static.
1999-03-12 05:00:32 +00:00
David Lawrence
62f178f499
Preserve the storage location of the down node of a pair of joined nodes
...
when deleting, where possible.
1999-03-11 22:04:24 +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
David Lawrence
6a0cb547d4
When splitting a node, increment PADBYTES by the amount that is truncated,
...
instead of just setting PADBYTES to that amount (this affects when a node
is split twice.)
1999-03-11 20:07:49 +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
b7ff8128f0
implement rdataset iteration
1999-03-11 06:02:28 +00:00
Bob Halley
bc5c129744
fix typo
1999-03-11 06:02:00 +00:00
Bob Halley
5245f4c5f9
have next method return DNS_R_NOMORE if cursor is already invalid
1999-03-11 06:01: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
285b63e90f
Added {} to prevent 'ambigious else' warnings.
1999-03-11 00:29:10 +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
9b8123723a
add comment
1999-03-09 22:50:13 +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
a301df6a92
add dbiterator
1999-03-08 19:01:49 +00:00
Bob Halley
bb8263521b
unimplemented db iterator support
1999-03-08 19:01:18 +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
a823c4f11a
requirement update
1999-03-07 19:21:49 +00:00
Bob Halley
b929562c6c
start adding interface comments
1999-03-07 19:21:37 +00:00
Bob Halley
8eea0575a0
update
1999-03-06 18:38:24 +00:00
Bob Halley
4c1132f344
update copyright
1999-03-06 04:12:06 +00:00
Bob Halley
7270737ca9
update copyrights
1999-03-06 04:03:53 +00:00
Bob Halley
c46bcd7c69
update copyright
1999-03-06 03:55:54 +00:00
Bob Halley
ff9104607c
add deletion
1999-03-06 00:51:12 +00:00
Bob Halley
12c0aff12a
printnode support; versioning fixes
1999-03-05 23:26:24 +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
e371b7a70f
basic versioning; 64-bit version support; C++ compatibility
1999-03-04 02:45:56 +00:00
Bob Halley
86921103ec
lint
1999-03-04 02:44:30 +00:00
Bob Halley
ca04d3fbf9
additional assertions, C++ compatibility
1999-03-04 02:43:05 +00:00
Bob Halley
0e3ad06058
additional assertions, C++ compatibility, rbtdb64 support
1999-03-04 02:42:40 +00:00
Bob Halley
bb556a9bf3
add rbtdb64
1999-03-04 02:39:41 +00:00
Bob Halley
7aacbd685b
C++ compatibility
1999-03-04 02:38:48 +00:00
Bob Halley
cc884bc809
add INSERTBEFORE, INSERTAFTER, APPENDLIST
1999-03-04 02:38:10 +00:00
Bob Halley
a358b1e42b
update copyright
1999-03-04 02:37:49 +00:00
Bob Halley
fa795c6d23
add ISC_LIST_APPENDLIST
1999-03-04 02:37:11 +00:00
Bob Halley
b4113e7bd9
add
1999-03-04 02:35:52 +00:00
Bob Halley
478d45fc48
do not install inet.h; add lang.h
1999-03-04 02:35:46 +00:00
David Lawrence
6735f1e886
arguments for common_labels and common_bits to dns_name_fullcompare
...
are unsigned ints
1999-03-04 02:35:04 +00:00
David Lawrence
005c7ad70f
Use dns_name_fullcompare() and remove internal comparison functions.
...
Allow root label to be in its own level (and thus have data associated with it.)
Avoid retraversal of level in dns_rbt_addonlevel().
1999-03-03 20:01:49 +00:00
Bob Halley
b2f1f3b836
add reminder
1999-03-02 19:57:10 +00:00
Bob Halley
ed7f35a9f7
compact() didn't recompute the offsets table even though offsets might have
...
changed.
As soon as a bitstring that didn't need compaction was encountered, compact()
would stop instead of processing the entire string.
1999-03-02 19:55:17 +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
bcd7fdf06c
Fix mnenonic names.
1999-02-25 00:27:02 +00:00
Mark Andrews
1ef8965366
Add decompression.
1999-02-24 06:31:35 +00:00
James Brister
8bb9bf6bfe
Added compress.o to get build going again.
1999-02-23 17:30:49 +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
5c821b7bda
fix cut and paste error
1999-02-18 01:24:59 +00:00
Bob Halley
6d5dcd0dc9
Make multiple build directories work again
1999-02-18 01:24:32 +00:00
Mark Andrews
54db0529dc
Copyright dates now comma seperated list of years.
1999-02-16 22:51:19 +00:00
Mark Andrews
0e8cf9a887
Style updates.
...
cvs: ----------------------------------------------------------------------
1999-02-16 22:42:33 +00:00
Bob Halley
b420577e13
add consume macros
1999-02-16 20:08:59 +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
29b487b0a4
add dns_name_fullcompare(); fix issubdomain and compare bugs
1999-02-16 08:18:44 +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
19511ab025
commenting improvement
1999-02-12 02:04:41 +00:00
Mark Andrews
ccedaf210f
Don't assign north / east as a side effect of if.
...
Add 'm' to the altitude output.
Negative altitudes were not being read in correctly. Fractional part
was being added rather that subtracted.
1999-02-11 14:00:29 +00:00
Michael Graff
882350d11c
Clean up many compiler warnings.
1999-02-11 06:38:12 +00:00
Bob Halley
6107e9b485
API cleanups
1999-02-11 04:56:07 +00:00
Bob Halley
62837b832f
version registry; API cleanups; comments; assertions
1999-02-11 04:55:38 +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
David Lawrence
c1bb41fa73
the root name is an absolute name
1999-02-10 19:32:48 +00:00
Bob Halley
cd9999a958
add comments, move color to avoid locking problem
1999-02-10 19:05:40 +00:00
Bob Halley
fd350b6d2a
remove typo
1999-02-10 19:04:48 +00:00
Bob Halley
8ade1c8762
add callbacks.o
1999-02-10 19:01:06 +00:00
Mark Andrews
bfc4767894
Additional description of function
1999-02-10 05:45:00 +00:00
Mark Andrews
fdd04623a6
Convert to user error / warn callbacks.
1999-02-10 05:25:37 +00:00
Mark Andrews
07c7ca6f31
isc_mem_strdup() result was not being checked.
1999-02-10 05:22:57 +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
Bob Halley
25870d4a37
eliminate infinite loop
1999-02-10 03:39:29 +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
0751254ce6
return DNS_R_BADDOTTEDQUAD on isc_inet_aton failure
1999-02-09 07:58:57 +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
Michael Graff
491b48ec3f
First pass at addrlength grossness cleanup. Man, this is ugly.
1999-02-06 08:48:08 +00:00
Bob Halley
14cb69a4f7
add missing isc_
1999-02-06 01:51:36 +00:00
Bob Halley
83ac7ce833
lint
1999-02-06 01:45:11 +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
05b95dc41b
master loader rename; performance improvements; deletion callback
1999-02-06 01:20:48 +00:00
Bob Halley
f150692ba3
name change
1999-02-06 01:18:18 +00:00
Bob Halley
6fce0bb174
add str.o
1999-02-06 01:16:58 +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
Bob Halley
1bf0b455b6
add XXXRTH comments
1999-02-06 00:00:41 +00:00
Mark Andrews
e4653123ec
isc_lex_getsourcename()
...
isc_lex_getsourceline()
convert uint#_tobuffer() to use isc_buffer_putuint#()
1999-02-05 06:41:21 +00:00
Mark Andrews
2cd8a160b9
Missing space totext_tkey()
1999-02-05 05:15:16 +00:00
Mark Andrews
15330e4fa2
isc_strtouq()
1999-02-05 04:57:20 +00:00
Mark Andrews
54c26ab21c
dns_cert_{to,from}text()
...
dns_secalg_{to,from}text()
1999-02-05 00:05:46 +00:00
Michael Graff
2e511564c5
work around broken lameness
1999-02-04 22:52:09 +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
f427e78509
Initial Implementation
1999-02-04 02:09:04 +00:00
Mark Andrews
f9d7040e8d
TSIG initial implementation.
1999-02-04 01:06:40 +00:00
Mark Andrews
904294c0c9
region_compare() return wrong result when regions were the same.
...
base64_tobuffer() need a way to read a specific length of base64
data, not just read to eol.
1999-02-04 00:03:29 +00:00
Mark Andrews
3a4ec3da9f
atob_tobuffer and btoa_totext
1999-02-03 06:01:32 +00:00
Mark Andrews
e59c5fc23f
UNSPEC Initial Implementation
1999-02-03 06:00:51 +00:00
Mark Andrews
217f572018
NSAP-PTR Initial implementation.
...
Modified gen.c to support "-" in class and type names.
1999-02-02 22:34:20 +00:00
Mark Andrews
5d15501996
Fix incorrect fix for valid strtol conversion sig_24.h
...
Make tests for full string consumption by strtol consistant
(*e == 0) || (*e != 0)
1999-02-02 13:31:46 +00:00
Mark Andrews
06a4967441
ATMA not supported.
1999-02-02 05:44:51 +00:00
Mark Andrews
bdfffc68db
Initial Implementation
1999-02-02 05:03:10 +00:00
Mark Andrews
901b5fb3b3
Initial Implementation.
1999-02-02 04:52:31 +00:00
Bob Halley
8272eed68f
fix typo
1999-02-02 01:43:47 +00:00
Bob Halley
f0bbac2c0f
signed vs. unsigned fix
1999-02-02 01:28:48 +00:00
Mark Andrews
12a12d8ab4
Initial Implementation
1999-02-02 01:19:22 +00:00
Bob Halley
fe47f41b13
eliminate compiler warnings (signed vs. unsigned)
1999-02-02 01:18:51 +00:00
Bob Halley
af6dfd762e
eliminate compiler warnings (char vs. uchar)
1999-02-02 01:17:49 +00:00
Bob Halley
5a7a0823f4
fix cut-and-paste error
1999-02-02 00:39:44 +00:00
Bob Halley
6acb28c304
use isc_inet_pton
1999-02-02 00:38:50 +00:00
Bob Halley
a6d40879d4
add inet_pton
1999-02-02 00:37:09 +00:00
Mark Andrews
a3c5ba000a
Initial implementation
1999-02-01 23:49:47 +00:00
Mark Andrews
12c6f4b3b2
SRV RR
1999-02-01 22:05:56 +00:00
Mark Andrews
fcf8db89e6
EID, NIMLOC
1999-02-01 21:34:51 +00:00
Bob Halley
a99979c686
add dns_db_origin
1999-02-01 21:21:35 +00:00
Mark Andrews
8a17d1e7cd
added decvalue
1999-02-01 07:59:43 +00:00
Mark Andrews
d42be4bb84
LOC
1999-02-01 07:58:13 +00:00
David Lawrence
8e1f35e1d7
free ancestor memory allocated in addonlevel
1999-02-01 03:26:00 +00:00
Mark Andrews
e4bea1f716
Added GPOS and AAAA
1999-02-01 00:15:55 +00:00
Mark Andrews
eb7a2b3291
PX X.400 mail mapping information
1999-01-31 22:38:40 +00:00
David Lawrence
265c6d0526
the space for the ancestor chain in addonlevel is now dynamic.
1999-01-31 19:55:52 +00:00
David Lawrence
94231e2288
added a function for getting space for ancestor nodes in the node_chain,
...
and use it within dns_rbt_findnode.
moved the guts of dns_rbt_deletename into its own function to clean up
the freeing of ancestor memory into just one location.
deletefromlevel required that ancestor_count be > 1, which would abort
trying to delete the root of the tree when the root had no children.
1999-01-31 18:43:57 +00:00
David Lawrence
97940a084c
don't free the down data pointer in join_nodes. (what was i thinking?!)
...
do free the ancestor chain in dns_rbt_deletename
1999-01-31 16:50:01 +00:00
David Lawrence
d65db52903
deletetree does not take a root parameter any more.
...
removed the SET_foo macros left over from the rbtgen.c pseudo-code.
1999-01-31 01:35:04 +00:00
David Lawrence
5a90bf50a8
Fixed up calls to dns_rbt_create and dns_rbt_findnode, which changed
...
in rbt.c
1999-01-31 01:00:57 +00:00
David Lawrence
0f5962ac3e
many changes.
...
ancestor/level history no longer kept in rbt structure; node_chain structure
was created for this purpose, and each dns_rbt_deletename call will pass
the chain structure to dns_rbt_findnode.
color enum removed from rbtnode structure; single bit used instead
length of name in rbtnode no longer kept as int in rbtnode structure;
stored as single byte just past end of rbtnode, and the actual name data starts
two bytes past the end.
dns_rbt_create takes additional argument that is a pointer to a function
which is responsible for deleting the space pointed to by an rbtnode's data
pointer when the node is removed.
dns_rbt_addnode renamed to dns_rbt_addonlevel so that dns_rbt_addnode could
be a public function that can provide the address of the new node back
to the caller.
removed several #if 0 blocks that were held over from when parent pointers
were used.
1999-01-31 00:52:53 +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
Mark Andrews
8aefdfc906
Missing !in_glue test.
1999-01-30 13:11:24 +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
Michael Graff
c810fcbf6c
Add isc_inet_aton() and a check to use system inet_aton()
1999-01-30 04:27:48 +00:00
Bob Halley
70db22e93b
comparisions should be case-insensitive
1999-01-30 04:27:13 +00:00
Michael Graff
0e0b744f61
Make <isc/types.h> which will include all the base types like <isc/int.h>.
1999-01-30 03:09:04 +00:00
Bob Halley
c8a42d6d81
add gen to clean rule
1999-01-30 01:40:16 +00:00
James Brister
4182ae60b0
Added ISC_R_INVALIDFILE
1999-01-30 00:54:32 +00:00
Michael Graff
f5375f2b93
u_long u_long; -> unsigned long ulong;
1999-01-30 00:29:31 +00:00
Bob Halley
e5c2e16bb2
store node lock number; rdataset methods; find and add rdatasets
1999-01-29 22:21:13 +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
d54184ee4c
current was not static; add private4 and private5; remove redundant code
1999-01-29 22:19:15 +00:00
Mark Andrews
2bc0da0cd8
Added NXT
...
Debugged SIG
1999-01-29 08:04:13 +00:00
Bob Halley
4dfbac7434
partial master file loading
1999-01-29 07:04:29 +00:00
Bob Halley
fec93edbae
add base
1999-01-29 07:04:03 +00:00
Bob Halley
b03b67a6f1
add base, dns_db_load
1999-01-29 07:03:42 +00:00
Bob Halley
f305d86668
need multiline mode
1999-01-29 07:02:59 +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
Bob Halley
918ef3a73e
save options before doing DNS multiline mode
1999-01-28 18:15:57 +00:00
Bob Halley
72614620fc
better support for multiple sources
1999-01-28 08:38:42 +00:00
Bob Halley
f3d3847553
add ISC_R_NOMORE
1999-01-28 08:38:01 +00:00
Mark Andrews
bdc5b485bc
ignoire enum*.h
1999-01-28 05:31:03 +00:00
Mark Andrews
6d7585b3e9
Auto generate enum*.h file
1999-01-28 05:16:42 +00:00
Mark Andrews
0c67279acb
Added soacount and nscount
1999-01-28 05:03:25 +00:00
Mark Andrews
e68714fd95
Add $TTL and $INCLUDE processing
1999-01-28 01:16:59 +00:00
Mark Andrews
89140b7f74
Added $ORIGIN support.
1999-01-27 23:57:46 +00:00
Mark Andrews
cee7525336
Add support for '@' => origin.
1999-01-27 23:39:40 +00:00
Mark Andrews
3ff55a3111
dns_master.c:
...
fix 2 infinite while loops.
use a pool of 5 buffers for dns_name_fromtext target.
add master_test.c:
1999-01-27 23:17:57 +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
22f735acbc
implement and use isc_buffer_putuint{16,32}()
1999-01-27 06:18:45 +00:00
Bob Halley
f0a5bb8f86
fix default case in dns_rdata_towire
1999-01-27 06:07:57 +00:00
Michael Graff
76883e8cee
implement dns_rdataset_towire()
1999-01-27 05:54:39 +00:00
Michael Graff
edd4f79b4b
fill in documentation on dns_rdata_towire()
1999-01-27 05:54:05 +00:00
Michael Graff
d915cb8961
fix cancel code
1999-01-27 04:17: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
59be3f4a67
fix possible char buffer draining problem; add DNS_LEXOPT_MULTILINE support
1999-01-26 08:26:19 +00:00
Bob Halley
9455756dab
add ISC_LEXOPT_MULTILINE
1999-01-26 08:24:31 +00:00
Bob Halley
516d43e889
add ISC_R_UNBALANCED
1999-01-26 08:23:55 +00:00
Bob Halley
1a148d1bcc
change namespace to db
1999-01-26 08:22:06 +00:00
David Lawrence
72d4e9f06f
Don't use deletenode in deletetree, because the color fixups do not need
...
to be done, just the memory recovered.
1999-01-26 03:31:53 +00:00
Bob Halley
fe7d53d4aa
redblack.o is gone
1999-01-25 21:46:22 +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
1c31915286
Add RR from RFC 1183
...
Update Copyright dates.
1999-01-22 05:02:49 +00:00
Michael Graff
64ba6e4cc3
make this go on the Alpha.
1999-01-22 04:35:11 +00:00
Mark Andrews
2192b44973
HINFO and TXT now handle quoted strings.
1999-01-22 01:27:30 +00:00
Michael Graff
110d170273
include <config.h>
1999-01-22 01:21:44 +00:00
Michael Graff
0c310d16b0
cast target->base to unsigned char *, and rearrange the includes
1999-01-22 01:21:02 +00:00
Mark Andrews
eb6bd543c7
covert RETERR to do { ... } while (0)
1999-01-22 00:38:47 +00:00
Mark Andrews
deaaf94332
dns_rdata_compare checked for RFC 1035 types
...
converted frometext* to use gettoken()
converted:
result = foo();
if (result != DNS_R_SUCCESS)
return (result);
to
RETERR(foo());
1999-01-22 00:36:59 +00:00
Mark Andrews
44a966dff6
Added WKS.
1999-01-21 06:02:15 +00:00
Mark Andrews
bed8e84810
Add meta and IANA reserved types / classes.
1999-01-20 22:49:34 +00:00
David Lawrence
910b2a8092
working single-level red/black tree code
1999-01-20 10:18:34 +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
Bob Halley
0d0d9a9d98
restructure totext(), print type and class as text instead of as numbers
1999-01-20 07:49:30 +00:00
Mark Andrews
4674aca9ba
Make names in TYPENAMES / CLASSNAMES uppercase.
1999-01-20 07:14:35 +00:00
Mark Andrews
a98551ef59
Implemented dns_rdatatype_fromtext(), dns_rdatatype_totext(),
...
dns_rdataclass_fromtext() and dns_rdataclass_totext().
1999-01-20 06:51:30 +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
Michael Graff
47db0e1d06
checkpoint. udp listener clde split out.
1999-01-20 03:54:54 +00:00
Bob Halley
603f92eefd
use target buffer, cleanups
1999-01-20 03:06:32 +00:00
Bob Halley
c98d185d0c
add active region; enforce invariants about current
1999-01-20 02:42:22 +00:00
Bob Halley
cada82f4ff
add active region
1999-01-20 02:41:54 +00:00
Bob Halley
26b0f58b6c
use the active region instead of the remaining region
1999-01-20 02:41:11 +00:00
Bob Halley
6097a45fec
note that active region must be set in dns_rdata_fromwire()
1999-01-20 02:40:45 +00:00
Bob Halley
1c25689ae6
more tabbing fixes
1999-01-20 02:40:02 +00:00
Mark Andrews
f7b99290c3
Added INSIST's
1999-01-19 06:49:33 +00:00
Michael Graff
523b3c81c3
Fix a nasty little UDP-related bug
1999-01-19 06:33:18 +00:00
Mark Andrews
3761c43391
Add $Id$'s
1999-01-19 05:38:36 +00:00
Mark Andrews
bb690d7580
towire_mx was using the wrong part of the target buffer.
1999-01-19 05:26:01 +00:00
Mark Andrews
bfb2a81b65
Fix initial towire/fromwire so they work.
1999-01-19 05:16:32 +00:00
Mark Andrews
3f28431177
Added "breaks" to defaults.
1999-01-19 04:44:19 +00:00
Mark Andrews
611a37e72d
Have to "break" at end of second level switch.
1999-01-19 04:40:48 +00:00
Mark Andrews
fa41ee66c7
ignore code.h and gen
1999-01-19 04:32:25 +00:00
Mark Andrews
7c89c5c574
second level switch was using the wrong variable
1999-01-19 04:31:30 +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
Mark Andrews
bc6f28fa15
as_ulong now works.
1999-01-18 08:04:35 +00:00
Mark Andrews
f957caf971
PREPEND was #defined to the wrong macro causing the lexer to
...
break;
1999-01-18 02:54:32 +00:00
Bob Halley
95552051ab
improve tabbing
1999-01-16 01:25:06 +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
1edf93cbc2
a timer now uses the mctx of its task
1999-01-16 00:01:18 +00:00
Bob Halley
62305d91b2
allow owner_name to be empty
1999-01-15 20:00:43 +00:00
Bob Halley
54f959d12b
implement basic totext
1999-01-15 19:36:07 +00:00
Bob Halley
884384ec4c
improve comments
1999-01-15 19:35:49 +00:00
Bob Halley
078d49b633
rdataset valid moved to .h file
1999-01-15 08:07:09 +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
ab2981e379
add rdatalist.c
1999-01-15 08:05:14 +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
Michael Graff
62a933c45b
Do the include thing differnetly for private headers
1999-01-15 02:51:47 +00:00
Michael Graff
9c4ac30e29
quick fix... Grr.
1999-01-15 02:22:15 +00:00
Michael Graff
b3f39a108c
move socket.c via copy
1999-01-15 02:16:45 +00:00
Bob Halley
eb5ae81b55
note
1999-01-15 02:14:55 +00:00
Bob Halley
bae7090755
Forgot to convert from manager->mctx to task->mctx in task_free().
1999-01-14 20:18:31 +00:00
Bob Halley
6a50a5b6dc
per task mctx
1999-01-14 20:03:54 +00:00
Bob Halley
aa3a328647
add DNS_R_NOTIMPLEMENTED
1999-01-14 19:53:10 +00:00
Bob Halley
c72a4d674d
cleanups
1999-01-14 19:52:52 +00:00
Bob Halley
611163de84
minor cleanup
1999-01-13 19:32:32 +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
8db3b065b4
Add 'list' field.
...
Fixed name length bug in _fromtext(), _fromwire(). The previous way of
computing the length failed if the length of the target buffer was > 255.
1999-01-13 19:17:22 +00:00
Bob Halley
d57fd9900a
add list field
1999-01-13 19:15:05 +00:00
Bob Halley
08dbab20ef
lint
1999-01-09 02:39:39 +00:00
Bob Halley
5aa416c8bd
lint; text region support
1999-01-09 02:39:19 +00:00
Bob Halley
be686734dd
lint; use text regions
1999-01-09 02:39:05 +00:00
Bob Halley
fe32db090e
fix isc_error_runtimecheck
1999-01-09 02:38:45 +00:00
Bob Halley
b5b97de45a
cleanup set_offsets; make dns_name_issubdomain more efficient
1999-01-09 01:17:09 +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
68109fb883
list macros now follow the naming convention
1999-01-09 00:20:27 +00:00
Bob Halley
63bd57250e
add isc_buffer_getuint{16,32}
1999-01-07 02:06:48 +00:00
Bob Halley
4b1c5cc4ee
add
1999-01-07 02:06:14 +00:00
Bob Halley
9192e92f7d
check if compression type is allowed
1999-01-06 20:04:41 +00:00
Bob Halley
10c49cf1b5
add DNS_R_DISALLOWED
1999-01-06 20:04:08 +00:00
Bob Halley
2328307a8f
use RUNTIME_CHECK instead of INSIST where appropriate
1999-01-06 20:02:52 +00:00
Bob Halley
da46905010
add RUNTIME_CHECK
1999-01-06 20:02:14 +00:00
Bob Halley
985687b4e0
add
1999-01-06 19:29:46 +00:00
Bob Halley
95c86af1e9
API changes (buffers); basic wire support
1999-01-06 05:41:20 +00:00
Bob Halley
77ca0b5793
API changes
1999-01-06 05:40:43 +00:00
Bob Halley
4880900113
remove generated files on distclean too
1999-01-06 05:39:52 +00:00
Bob Halley
5dee047038
new codes
1999-01-06 05:39:08 +00:00
Bob Halley
72c5d65bd2
new buffer representation changes; use FATAL_ERROR not INSIST(0)
1999-01-06 05:38:21 +00:00
Bob Halley
005df5aba5
change from current pointer to current offset, other improvements
1999-01-06 05:37:54 +00:00
Bob Halley
c23afd025e
update copyright
1999-01-06 05:33:05 +00:00
Bob Halley
d386111bff
case sensitive switch for symbol tables
1999-01-04 22:30:28 +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
Bob Halley
903b7c030e
add lex
1998-12-30 22:11:19 +00:00
Bob Halley
436db6667a
convert ISC_R_TOOSMALL to ISC_R_NOSPACE
1998-12-30 20:18:09 +00:00
Bob Halley
af0fce400b
add new codes
1998-12-30 20:17:41 +00:00
Bob Halley
dad8d67ed0
add isc_mem_strdup
1998-12-30 20:17:02 +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
7cfb2cec61
fix comment
1998-12-19 00:15:50 +00:00
Bob Halley
9695806934
Don't allow type 0 to be used in a define.
1998-12-19 00:15:19 +00:00
Bob Halley
a5e49e5f7e
exists policy; module documentation
1998-12-19 00:14:33 +00:00
Bob Halley
95bcf47ff9
exists policy
1998-12-19 00:13:59 +00:00
Michael Graff
53d53f147b
pull in <config.h> for possible alternate definition of inline
1998-12-18 22:20:02 +00:00
Michael Graff
dfd9b3fa62
Make this go on aa
1998-12-18 22:02:41 +00:00
Bob Halley
88580572f0
undefine action
1998-12-18 21:17:49 +00:00
Bob Halley
f058f96484
undefine action; assertions
1998-12-18 21:17:37 +00:00
Bob Halley
06c29e22e0
rwlock macros
1998-12-18 21:16:57 +00:00
Bob Halley
8dcce6f922
change memctx to mem
1998-12-18 19:14:37 +00:00
Bob Halley
4cafb28abc
change memctx to mem; cleanups; fix debug trace problem
1998-12-18 19:14:09 +00:00
Bob Halley
b2df2dafcd
add ISC_R_NOTFOUND
1998-12-18 19:12:36 +00:00
Bob Halley
7c9b885120
add symtab
1998-12-18 19:06:16 +00:00
Michael Graff
222b564ebb
clean up memory leaks
1998-12-18 04:03:11 +00:00
Bob Halley
50f3977f4f
nits
1998-12-18 02:28:27 +00:00
Bob Halley
8e93971d17
initialize all common event fields
1998-12-18 02:28:12 +00:00
Michael Graff
93e065e7a6
snapshot
1998-12-18 01:48:43 +00:00
Bob Halley
0ab04d76c8
conforming changes for task API revision
1998-12-16 02:05:38 +00:00
Bob Halley
835e240716
The lock must be held when calling SIGNAL
1998-12-16 02:04:43 +00:00
Bob Halley
131b0092c6
Improvements to the task shutdown process:
...
A shutdown event specification is no longer part of the
isc_task_create() API.
Multiple shutdown events can be requested with isc_task_onshutdown().
Shutdown events are posted LIFO.
The ability to send events can be enabled and disabled with
isc_task_allowsend().
Event actions return void; the only way to shutdown a task is to
call isc_task_shutdown().
There are no implicit event discards anymore. (There is no need for
them, since event actions cannot request immediate shutdown anymore.)
1998-12-16 02:02:10 +00:00
Bob Halley
8cfc44208a
minor shutdown message improvement
1998-12-16 01:56:36 +00:00
Bob Halley
3ee2a218d7
add ISC_R_TASKNOSEND and ISC_R_TASKSHUTTINGDOWN
1998-12-16 01:55:53 +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
1cef22510e
convert to util.h; add magic
1998-12-13 02:04:56 +00:00
Bob Halley
a3002fd5a2
convert to util.h
1998-12-13 02:04:22 +00:00
Bob Halley
674dd7889b
convert to util.h; only set magic if ok; forgot detach if mutex init fails
1998-12-13 02:03:46 +00:00
Bob Halley
00abfda448
convert to util.h; set magic only on success
1998-12-13 02:01:01 +00:00
Bob Halley
7a208a07a1
add
1998-12-13 02:00:01 +00:00
Bob Halley
1633838b82
update copyrights
1998-12-12 20:48:14 +00:00
Bob Halley
d25afd60ee
include config.h
1998-12-12 19:25:20 +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
4504e5cc6e
conforming changes
1998-12-11 20:47:40 +00:00
Bob Halley
2983bfafb7
get rid of rcsid
1998-12-11 20:47:28 +00:00
Bob Halley
8f8c3d34dd
casts to eliminate sendto and memcpy warnings
1998-12-11 20:47:15 +00:00
Bob Halley
6792dd6d22
conforming changes for new pool
1998-12-11 20:38:46 +00:00
Bob Halley
2785477bd3
add version stamp
1998-12-11 20:26:40 +00:00
Bob Halley
a5d43b7241
BIND9 Pool Creation
1998-12-11 20:10:26 +00:00
Michael Graff
0c7244d352
added marks, and cleaned up from the review from Bob. Still more to do, but
...
this catches most of it.
1998-12-10 16:14:05 +00:00
Bob Halley
6476e07e0a
fix blocking fd problem; fix unlock problem; other minor fixes
1998-12-05 01:44:38 +00:00
Bob Halley
577179503f
move get_bit and set_bit; indicate where to convert from ASCII
1998-12-05 01:42:30 +00:00
Michael Graff
7251d77646
snapshot
1998-12-05 00:28:13 +00:00
Bob Halley
da4242bf62
replace unexpect.[ch] and fatal.[ch] with error.[ch]
1998-12-04 20:00:26 +00:00
Michael Graff
c2be3539e9
snapshot
1998-12-04 11:21:11 +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
Michael Graff
a0084eaa9f
checkpoint
1998-12-01 23:59:39 +00:00
Michael Graff
e75eee3206
snapshot
1998-12-01 21:39:00 +00:00
Michael Graff
9de9ae0839
cleanup header file to list actual return codes, new entry conditions, etc
1998-12-01 17:58:34 +00:00
Michael Graff
97ed1e3750
clean up reference counts
1998-11-26 00:29:12 +00:00
Michael Graff
a21e2e7fea
connect works; snapshot
1998-11-26 00:10:33 +00:00
Bob Halley
9df01daac3
update
1998-11-16 23:50:01 +00:00
Bob Halley
6a632f6968
add ISC_R_EXISTS
1998-11-16 23:49:08 +00:00
Bob Halley
3a6c3beafc
update
1998-11-16 23:17:42 +00:00
Michael Graff
4095b36415
try to get the address put into the returned structure, but no go yet
1998-11-15 11:48:21 +00:00
Bob Halley
7861b13341
add comment
1998-11-14 02:51:26 +00:00
Bob Halley
5bef099303
include attribute.h
1998-11-14 02:49:29 +00:00
Bob Halley
e60efa407d
change FIND to SEARCH
1998-11-14 02:41:06 +00:00
Bob Halley
18e5d28c86
add
1998-11-14 02:35:03 +00:00
Bob Halley
26ebe15d05
add magic
1998-11-12 23:30:58 +00:00
Bob Halley
4bba0ce1d3
clean up debugging, add magic
1998-11-12 23:30:46 +00:00
Bob Halley
994ba9c913
add write quota
1998-11-12 22:27:30 +00:00
Bob Halley
c8e7460242
add
1998-11-12 02:02:52 +00:00
Bob Halley
f671a5c51c
add isc_mutex_trylock()
1998-11-11 19:03:08 +00:00
Bob Halley
903c1c35fc
add ISC_R_LOCKBUSY
1998-11-11 19:02:52 +00:00
Bob Halley
b10b0bdf3f
assume multithreaded unless ISC_SINGLETHREADED is defined
1998-11-11 19:02:24 +00:00
Michael Graff
8219cec0de
fix queued write bug, and result status bug for immediate I/O
1998-11-11 02:05:36 +00:00
Michael Graff
28866ad778
handle manager->maxfd somewhat well -- it'll grow, but never shrink, yet.
1998-11-11 01:44:08 +00:00
Michael Graff
3d8e572880
writing works now, too.
1998-11-11 00:43:14 +00:00
Michael Graff
59b2e9c361
add ISC_R_TASKSHUTDOWN and use it in isc_task_send()
1998-11-10 20:57:32 +00:00
Michael Graff
a609982aa7
Small change to the isc_task_send() function: return ISC_R_SUCCESS if the
...
event was queued, return ISC_R_NORESOURCES if not. The error return
needs to be something different.
1998-11-10 11:39:13 +00:00
Michael Graff
8871894f2d
checkpoint. listen and read works, now.
1998-11-10 11:37:54 +00:00
Michael Graff
bb039bc91e
snapshot
1998-11-10 01:56:44 +00:00
Michael Graff
91c21a94b8
checkpoint
1998-11-07 02:31:04 +00:00
Michael Graff
7f9e707684
checkpoint
1998-11-06 01:45:35 +00:00
Michael Graff
1edb223dd3
return the number of items purged
1998-11-06 01:44:44 +00:00
Michael Graff
f02c1d9431
define more return codes
1998-11-06 01:44:19 +00:00
Bob Halley
5741be0b80
add event destructor
1998-11-03 19:05:12 +00:00
Michael Graff
6d05b41aae
Commit socket code so far -- nowhere near done, but I don't wanna loose work.
1998-11-03 00:54:47 +00:00
Michael Graff
35921f41cf
Add ISC_R_NORESOURCES, and redo where and how the last entry is set
1998-11-03 00:53:42 +00:00
Bob Halley
7b5e3afd21
buffer.c
1998-10-29 02:01:29 +00:00
Bob Halley
928da6e9e3
add
1998-10-29 02:01:20 +00:00
Bob Halley
b32248301c
the event action is now responsible for freeing the event memory
1998-10-28 01:45:43 +00:00
Bob Halley
b592e197fe
update
1998-10-27 03:12:07 +00:00
Bob Halley
a2a072eb23
use proper isc result type
1998-10-26 23:08:23 +00:00
Bob Halley
4d6964d70a
checkpoint
1998-10-26 23:07:57 +00:00
Bob Halley
3cddfdd299
add new results
1998-10-26 23:07:15 +00:00
Bob Halley
ab774d16c4
get rid of now-unneeded time.h
1998-10-24 01:06:59 +00:00
Bob Halley
d3239a41d1
eliminate detach
1998-10-23 23:51:09 +00:00
Bob Halley
7c93964aaf
use isc_thread_join() to wait for workers to exit
1998-10-23 23:50:15 +00:00
Bob Halley
b07a162e29
type changes for _beginthreadex
1998-10-23 23:02:01 +00:00
Bob Halley
4bed2e84a3
opaque isc_time_t; add isc_interval_t; UNIX-specific conversions
1998-10-23 23:01:41 +00:00
Bob Halley
49bcef9c9c
opaque isc_time_t
1998-10-23 23:01:12 +00:00
Bob Halley
db1e643c60
isc_interval_t conversion
1998-10-23 23:00:40 +00:00
Bob Halley
5cc3e0c38f
opaque isc_time_t; add isc_interval_t; conditional WINAPI for run()
1998-10-23 22:59:44 +00:00
Bob Halley
3ce87f4ed9
conditional WINAPI for run()
1998-10-23 22:59:02 +00:00
Bob Halley
1eda5e1a7c
switch to _beginthreadex; close thread handle after join
1998-10-23 18:24:18 +00:00
Bob Halley
ce1e4ac907
clean up; add warnings about use of signal and broadcast
1998-10-23 18:22:22 +00:00
Bob Halley
9fbefe0ace
convert back to UNIX text format
1998-10-23 06:02:07 +00:00
Bob Halley
0fc87fa2f3
add
1998-10-23 05:45:44 +00:00
Bob Halley
6052dab738
update
1998-10-23 05:45:26 +00:00
Bob Halley
06bb37d18e
need string.h to get memcpy prototype
1998-10-23 05:44:59 +00:00
Bob Halley
42e562f5e3
revise join; add arg and result types
1998-10-23 05:44:27 +00:00
Bob Halley
f191e3b4e8
Switch from BROADCAST to SIGNAL in many cases; hold lock while doing either.
1998-10-22 19:23:26 +00:00
Bob Halley
0bbadb0a2f
portability
1998-10-22 01:59:50 +00:00
Bob Halley
bf6d2e3912
more renaming
1998-10-22 01:33:20 +00:00
Bob Halley
de9282a1ea
rename memcluster
1998-10-21 22:01:08 +00:00
Bob Halley
c92ba07101
more renaming
1998-10-21 02:26:57 +00:00
Bob Halley
5f74ac33a0
more renaming
1998-10-21 01:57:35 +00:00
Bob Halley
35815e1e2a
more namespace cleanups
1998-10-21 01:16:18 +00:00
Bob Halley
f47bb8d1f3
many name conversions
1998-10-21 01:13:50 +00:00
Bob Halley
8b935d4a13
add
1998-10-21 01:08:12 +00:00
Bob Halley
0c7c25a1c6
checkpoint
1998-10-20 00:52:19 +00:00
Bob Halley
b07f8da9cd
eliminate timer_shutdown; add purging option to timer_reset
1998-10-16 23:57:51 +00:00
Bob Halley
258c9ab88d
had it right the first time
1998-10-16 22:21:21 +00:00
Bob Halley
21eb2ca7bc
more complete fix for typo
1998-10-16 22:15:23 +00:00
Bob Halley
1b36197e73
fix typo
1998-10-16 22:14:47 +00:00
Bob Halley
a942d47f84
get rid of portability problem in condition variables
1998-10-16 22:09:09 +00:00
Bob Halley
9c018a718a
move sooner and set_index further down
1998-10-16 21:54:53 +00:00
Bob Halley
c09dae9683
clean up tracing
1998-10-16 21:53:23 +00:00
Bob Halley
918bae0f4b
update
1998-10-16 21:41:30 +00:00
Bob Halley
a75f433c83
udpate
1998-10-16 20:20:31 +00:00
Bob Halley
225c880310
checkpoint (working)
1998-10-16 19:56:56 +00:00
Bob Halley
5291519dba
checkpoint
1998-10-16 18:46:38 +00:00
Bob Halley
38b612afe1
checkpoint
1998-10-16 07:44:20 +00:00
Bob Halley
82ebb6cf50
update
1998-10-16 01:54:25 +00:00
Bob Halley
b0f24684b3
checkpoint
1998-10-16 01:54:04 +00:00
Bob Halley
2985234619
checkpoint
1998-10-16 01:18:31 +00:00
Bob Halley
00c6365ade
checkpoint
1998-10-15 23:51:14 +00:00
Bob Halley
7bae6a079b
add
1998-10-15 23:42:56 +00:00
Bob Halley
4c7d0f3c38
add
1998-10-15 22:22:50 +00:00
Bob Halley
94e25967cd
add
1998-10-15 01:20:28 +00:00
Bob Halley
fda0ab6a96
add result
1998-10-14 22:35:04 +00:00
Bob Halley
18cc70d001
move some includes from task.h to task.c
1998-10-14 18:56:13 +00:00
Bob Halley
c1735aa89b
cleanup
1998-10-14 01:41:55 +00:00
Bob Halley
232548d5d7
add event purging
1998-10-13 20:22:22 +00:00
Bob Halley
8f9001ec65
remove one more remnant
1998-09-16 21:41:10 +00:00
Bob Halley
b3b43bcc22
remove range code; implement mem_context_destroy more completely
1998-09-16 21:38:08 +00:00
Bob Halley
f15356f883
remove now-useless remnant of an earlier revision
1998-09-16 21:35:32 +00:00
Bob Halley
2acf552661
update
1998-08-20 22:21:35 +00:00
Bob Halley
d740c17c9c
cleanups
1998-08-20 20:48:09 +00:00
Bob Halley
26d7020e2e
update
1998-08-19 23:36:12 +00:00
Bob Halley
94123b5120
checkpoint
1998-08-19 21:46:15 +00:00
Bob Halley
dcd83f0e1c
update
1998-08-19 01:38:06 +00:00
Bob Halley
50f339a799
update
1998-08-18 19:28:30 +00:00
Bob Halley
d6da3b9e10
update
1998-08-18 08:05:45 +00:00
Bob Halley
e7b7e6e746
checkpoint
1998-08-18 00:47:55 +00:00
Bob Halley
9a4ce0c258
add
1998-08-18 00:37:02 +00:00
Bob Halley
138d22b316
update
1998-08-18 00:34:54 +00:00
Bob Halley
0dbe3d9c27
checkpoint
1998-08-18 00:29:57 +00:00
Bob Halley
3a6202f163
checkpoint
1998-08-17 23:15:50 +00:00
Bob Halley
7ee52cc7d1
base
1998-08-17 22:05:58 +00:00