Commit graph

1968 commits

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

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

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

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

	Changed some INSIST -> REQUIRE.

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

color stored in single bit

references bitfield width decrease by one

typedef for a node_chain structure, used by dns_rbt_findnode

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

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

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

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

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

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

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

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

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