Commit Graph

16 Commits

Author SHA1 Message Date
taciomcosta d128d10d17
refactor: remove ParseZone and parseZone (#1099) 2020-04-28 09:24:18 +02:00
Miek Gieben 348c84f37e
Test: remove all Logf/Log (#547)
Move some of them to Errorf and friends, but most of them are just
gone: This make go test -v actually readable.

Remove a bunch of test that used ipv6 on localhost as this does not work
on Travis.
2017-11-03 15:50:01 +00:00
Richard Gibson eccf8bbe83 Correctly parse omitted TTLs and relative domains (#513)
* Fix $TTL handling
* Error when there is no TTL for an RR
* Fix relative name handling
* Error when a relative name is used without an origin (cf. https://tools.ietf.org/html/rfc1035#section-5.1 )

Fixes #484
2017-09-26 11:15:37 -04:00
Marcus Grando 58f52c57ce Change VERSION private RR to use reserved space (#415) 2016-10-18 07:08:08 +01:00
Marcus Grando 3efeaabb39 Respect range of RFC6895 (#413) 2016-10-17 17:55:37 +01:00
Miek Gieben 6ae3b9f061 Skip reflection for most types (#369)
Make the reflection types a black list (these types use (or should use)
the tag 'size-xxx' in their struct definition.s

HIP, IPSECKEY, NSEC3, TSIG

All other types don't use reflection anymore.

* Return a pointer to the header when there is no rdata, this restores old
  behavior. The rest of the conversion mostly hangs on getting size-hex
  right, but then packStruct and packStructValue and the unpack variant
  can be killed.
* Generate pack and unpack for all embedded types as well.
* Fix PrivateRRs, register an unpack function as well, when you register
  a new PrivateRR.
* Add the tag octet, nsec, []domains and more  to msg_helper.go
2016-06-12 16:09:37 +01:00
Miek Gieben f520760857 Lowercase all error msg from the tests 2015-11-26 14:12:38 +00:00
Michael Haro 7f051930ff Use %v as the format arg for errors 2015-02-26 00:49:59 -08:00
Miek Gieben d05369e629 tests: remove parse_test.db
Make it an string inside the test file and use strings.NewReader.
2014-10-06 07:45:31 +01:00
Miek Gieben 45e66bfe1d Rename ParseTextSlice to Parse.
Shorter.
2014-09-21 19:09:13 +01:00
Miek Gieben 45f3dc89e4 Rename CopyRdata to just Copy.
Still not sure if this makes things more clear.
2014-09-21 18:30:16 +01:00
Miek Gieben 685f708a9e Rename RdataLen to just Len 2014-09-21 18:21:34 +01:00
Miek Gieben 9c9f3646ff More naming and some docs 2014-09-21 09:07:26 +01:00
Miek Gieben b90da23741 Fix tests and examples.
Put all examples in the same file and cleanup the tests to use
the new names.
2014-09-21 08:38:17 +01:00
Miek Gieben 9c455b0214 PrivateRR: naming naming naming
Try to find better (=more in sync with the rest of the lib) naming. My
guess is that these are better, but YMMV.
2014-09-21 08:28:38 +01:00
Miek Gieben 7e792338bb Move custom* filenames to private to be in sync with the type 2014-09-21 07:56:01 +01:00