Mark Andrews
9088094680
Add read support for BIND 8 TTL / counter format to soa.
...
Move bind_ttl to ttl.c and rename dns_ttl_fromtext and dns_counter_fromtext,
fix bug in handling of seconds (x 1 not x 60), can also handle raw number.
1999-11-02 13:07:53 +00:00
Mark Andrews
db725ebe2b
Add initial class HS support.
1999-10-13 01:24:49 +00:00
David Lawrence
ea86510592
cast token as_ulong to unsigned char rather than use token as_char
...
because the latter will give the wrong value on big-endian systems.
1999-10-08 23:54:40 +00:00
David Lawrence
d2d1163f55
um, ignore that last change. using token.value.as_char will not be
...
correct on big-endian systems. use as_ulong but cast to unsigned char.
1999-10-08 23:52:39 +00:00
David Lawrence
65f7626dff
cast int arguments to isc_buffer_putuint{16,32} to appropriate size.
...
they are already masked out of a 64 bit int to the correct size, but
NT's CL is Unaware.
1999-10-08 22:48:13 +00:00
David Lawrence
793213e886
assign char prefixlen from token.value.as_char, not token.value_.as_ulong.
...
it has already been checked for range.
1999-10-08 22:46:28 +00:00
David Lawrence
63430de345
Check the rdata type for range before uint16_tobuffer, because by the time
...
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.
delint: integral size mismatch in call to dns_rcode_totext with a 32 bit
int passed where a 16 bit is expected. since the variable was retrieved
via uint16_fromregion immediately prior to dns_rcode_totext, casting
the 32 bit to 16 bit (to dns_rcode_t) is sufficient.
1999-10-08 21:45:01 +00:00
David Lawrence
0bd044c2af
Check the rdata type for range before uint16_tobuffer, because by the time
...
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.
also, use token.value.as_char when assigning to char c, which is already
checked to be < 256.
1999-10-08 21:42:23 +00:00
David Lawrence
6e482e595d
fromtext_nxt(): check the range of 'dns_rdatatype_t covered' from the long int
...
that is read via strtol() rather than assigning covered directly from strtol(),
so that a value greater than the width of dns_rdatatype_t can be detected.
1999-10-08 21:26:42 +00:00
David Lawrence
722cc17289
delint: integral size mismatch in call to dns_cert_totext with a 32 bit
...
int passed where a 16 bit is expected. since the variable was retrieved
via uint16_fromregion immediately prior to dns_cert_totext, casting
the 32 bit to 16 bit (to dns_cert_t) is sufficient.
1999-10-08 21:22:27 +00:00
Brian Wellington
cf3f14106d
Changed 'dns_name_t *' in structs to 'dns_name_t'
1999-10-07 21:49:39 +00:00
Brian Wellington
be51993531
added key to/from/free struct
1999-10-07 21:48:52 +00:00
Andreas Gustafsson
3ddd92da66
improved support for mnemonics in DNSSEC RR types
1999-09-17 09:25:21 +00:00
Michael Graff
5f0e2c8913
update copyright text
1999-09-16 00:02:20 +00:00
Michael Graff
2f072c2982
Update copyrights
1999-09-15 23:03:43 +00:00
Mark Andrews
05f90cac85
Adjust / add stucture definitions for NS/SOA/A/AAAA/A6 records.
1999-09-02 06:40:15 +00:00
Bob Halley
bf555703f2
OPT support
1999-09-01 20:50:34 +00:00
Brian Wellington
32b57aa1b9
missing isc_mem_put
1999-08-31 22:09:24 +00:00
Bob Halley
e27a69f8bd
add digest support
1999-08-31 22:05:55 +00:00
Bob Halley
20dbb03b72
compare did not handle some cases; add digest support
1999-08-31 22:04:00 +00:00
Brian Wellington
b5da378f29
fixes to totext and tostruct
1999-08-31 14:55:47 +00:00
Bob Halley
d66d2cb728
add comment
1999-08-28 01:48:48 +00:00
Brian Wellington
8ee1eaab0b
various bug fixes
1999-08-25 14:22:38 +00:00
Brian Wellington
d8813e2cee
implemented to/from/free_struct
1999-08-25 14:18:35 +00:00
Brian Wellington
6d4886fa74
Added support for TSIG records in message and resolver subsystems, added
...
tsig to_struct/from_struct
1999-08-20 18:56:24 +00:00
Bob Halley
4529cdaeda
make rdata functions static inline
1999-08-12 01:32:42 +00:00
Bob Halley
b1bc194f94
additional data support
1999-08-03 20:55:19 +00:00
Bob Halley
f1b0e9107d
additional data support
1999-08-03 01:21:23 +00:00
Bob Halley
d981ca6455
class to rdclass; additional data support
1999-08-02 22:18:31 +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
Bob Halley
8360c3dc0f
eliminate inet.h; do not use UNIX-specific .h files
1999-07-16 00:24:33 +00:00
Andreas Gustafsson
df7f20ae77
the WKS protocol field is 8 bits, not 16
1999-07-05 05:50:52 +00:00
Mark Andrews
e205d63cbb
Missing #include
1999-07-05 00:32:37 +00:00
Bob Halley
58b3ed8a34
fix a static declaration
1999-07-03 20:58:13 +00:00
Andreas Gustafsson
fad44a20ee
omit parenthesis when DNS_STYLEFLAG_MULTILINE is not set
1999-06-08 20:41:31 +00:00
Andreas Gustafsson
5fc7ba3e1a
added dns_db_dump(), $DATE, and supporting changes
1999-06-08 10:35:23 +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
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
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
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
Mark Andrews
1ef8965366
Add decompression.
1999-02-24 06:31:35 +00:00
Mark Andrews
52637f592f
Add wire compression.
1999-02-22 07:24:05 +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
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
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
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
Bob Halley
83ac7ce833
lint
1999-02-06 01:45:11 +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
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
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
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
Mark Andrews
12a12d8ab4
Initial Implementation
1999-02-02 01:19:22 +00:00
Bob Halley
af6dfd762e
eliminate compiler warnings (char vs. uchar)
1999-02-02 01:17:49 +00:00
Bob Halley
6acb28c304
use isc_inet_pton
1999-02-02 00:38:50 +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
d42be4bb84
LOC
1999-02-01 07:58:13 +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
Michael Graff
c810fcbf6c
Add isc_inet_aton() and a check to use system inet_aton()
1999-01-30 04:27:48 +00:00
Mark Andrews
2bc0da0cd8
Added NXT
...
Debugged SIG
1999-01-29 08:04:13 +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
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
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
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
26b0f58b6c
use the active region instead of the remaining region
1999-01-20 02:41:11 +00:00
Mark Andrews
f7b99290c3
Added INSIST's
1999-01-19 06:49:33 +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
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