Commit Graph

2617 Commits

Author SHA1 Message Date
Miek Gieben 2b65c92022 Merge branch 'master' of github.com:miekg/dns 2013-06-22 08:45:58 +01:00
Miek Gieben bb732937a2 Add Benchmarking functions 2013-06-22 08:40:02 +01:00
Miek Gieben 38ea608d79 Rename the Label* functions
SplitLabels -> SplitDomainName
CompareLabels -> CompareDomainName
LenLabels -> CountLabel
          -> NextLabel was added as a simple iterator-like function
2013-06-22 07:21:15 +00:00
Miek Gieben 74a0da119d Uh uppercase it here too 2013-06-21 15:31:19 +00:00
Miek Gieben ef73958b14 Make nextLabel public 2013-06-21 15:23:31 +00:00
Miek Gieben 9640d43c82 Make SplitLabels use Split 2013-06-21 15:17:12 +00:00
Miek Gieben 939abbfea7 Re-arrange some comments 2013-06-21 08:53:24 +00:00
Miek Gieben 45eff721ce Add the beginning of a AS212 server 2013-06-20 20:52:55 +00:00
Miek Gieben a16b289765 Add todo 2013-06-20 20:36:13 +00:00
Miek Gieben 9e544160e4 Fixo 2013-06-20 14:24:53 +00:00
Miek Gieben 1d22bfdb4d Add more efficient label test functions
Also add tests for it.
2013-06-20 14:24:14 +00:00
Miek Gieben d526e0beee Merge branch 'master' of github.com:miekg/dns 2013-06-20 13:26:09 +00:00
Miek Gieben cb1a259368 Add the first of faster/mem eff. labsl functions 2013-06-20 07:49:18 +01:00
Miek Gieben a317648fa3 Add some more TODOs to Pack and kill the println
This closes #46 (for now :-) )
2013-06-20 07:28:51 +01:00
Miek Gieben 5f6228d4cc Use the non-exported version err 2013-06-20 07:27:28 +01:00
Miek Gieben 70f9c6b964 Make err non-exported 2013-06-20 07:25:29 +01:00
Miek Gieben 667f7eb216 Added 2013-06-19 15:22:55 +00:00
Miek Gieben 76dd2f8220 Merge pull request #45 from deweerdt/master
Add a panic clause to fix 'missing return' error
2013-06-18 10:57:52 -07:00
fdeweerdt 6de33f30fe Fix 1.1.1 missing return error 2013-06-18 10:38:14 -07:00
Miek Gieben 11d592bfa7 client.Retry does not do anything
Remove from the struct as it was not implemented.
2013-06-15 20:35:09 +01:00
Miek Gieben d171a352d9 Small fix for go < 1.1 versions 2013-06-15 18:27:52 +01:00
Miek Gieben 5d094e6e2d gofmt 2013-06-14 19:42:55 +01:00
Miek Gieben b697d25ed9 Remove unneed string conversion here 2013-06-14 11:38:04 +00:00
Miek Gieben 9ee7c27e18 Fix rawSetRdlength
When searching for the start of the rdata, the offset wasn't properly
calculated. This only impacted names with \DDD in it (weirdly enough).
2013-06-14 11:35:06 +00:00
Miek Gieben 3f348f173b \DDD to buf parsing fails (sometimes)
Added test (that fails for now)
2013-06-14 07:31:22 +01:00
Miek Gieben 6ee0baab56 anything escaped in domain name is legal
Allow all character after a \ in a domainname. It's escaped, it's
legal.
2013-06-13 19:41:37 +01:00
Miek Gieben 5d84523f5b Move pack_test to parse_test 2013-06-13 19:19:40 +01:00
Miek Gieben 088aa2c16b Merge branch 'master' of github.com:miekg/dns 2013-06-13 14:24:36 +00:00
Miek Gieben 9b4160c9a5 Some tweaks 2013-06-13 14:24:24 +00:00
Miek Gieben 8e68ad38d6 Use new stuff here too 2013-06-08 14:24:20 +01:00
Miek Gieben b35306b755 Created two new types: Type and Class
Actually just go with Robert's suggestion as this seems the
cleanest way to do it. Also saves me from thinking about could
names for the new functions.
2013-06-08 14:09:37 +01:00
Miek Gieben c72535f2d6 Add TypeToTypeString and ClassToClassString
After some discussion with Robert Edmonds, these helper functions
seems in order. It is not what he requested (that was an RRType
and RRClass as new types), but is does make sense to add some
convience functions to save some typing. The dns package itself
also used these function (4 times). So clearly there is a need.

I'm not completely sold about the names.
2013-06-08 13:59:49 +01:00
Miek Gieben eaa57c3335 EDNS0 codes have been allocated 2013-06-07 10:45:58 +00:00
Miek Gieben 11033f083b yeah 2013-06-07 08:16:01 +01:00
Miek Gieben fe71bc23db Reverse the test outcome 2013-06-07 08:15:24 +01:00
Miek Gieben d017b24161 parsing known records as unknown ones, does not work 2013-06-07 08:14:14 +01:00
Miek Gieben 88c466c949 Add Copyright to the new file 2013-06-06 19:37:22 +01:00
Miek Gieben 3b95788578 Merge pull request #42 from yalp/FixTxtLen
Fix length computation for TXT and a testcase.
2013-06-06 11:36:11 -07:00
Marc Capdevielle 7c80a7202f Add tests for TXT record serialization 2013-06-06 14:02:57 +02:00
Marc Capdevielle 795a69a6ec Fix length computation for TXT 2013-06-06 14:02:43 +02:00
Miek Gieben e8e8e84200 remove println 2013-06-05 22:33:15 +01:00
Miek Gieben 6f0ce553cf Acutally use the CERT parsing
Also fix some bugs in the errors it sends back
2013-06-05 22:28:13 +01:00
Miek Gieben fd17416ab0 Fix parsing MINFO 2013-06-05 22:20:36 +01:00
Miek Gieben b33fb29f34 Actually add the MINFO parsing 2013-06-05 22:16:55 +01:00
Miek Gieben f6c697f52b Fix IsDomainName
Make \.. legal (as it should be) and don't allocate a new var byte c
and every loop.
2013-06-05 22:06:02 +01:00
Miek Gieben 637fed84a4 Remove tests for zone 2013-06-05 20:41:53 +01:00
Miek Gieben 8b1cbd40ce Remove zone.go
The needs for in memory zone data are complex and different for
almost everybody. Adding a memory efficient, fast, generic and
simple data structure to go dns is therefore off the table.
2013-06-05 20:37:37 +01:00
Miek Gieben 15d8cdc5f9 Fix: the *dns.TXT instead of *TXT 2013-06-04 11:37:11 +02:00
Miek Gieben 285a216328 small doc updates 2013-05-16 00:15:36 +01:00
Miek Gieben 3bba2c99c6 Kill the use of strings.ToUpper
This creates garbage and does not really help the parsing.
2013-05-15 19:43:10 +02:00