Skip to content

Commit

Permalink
nicer Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Oct 1, 2009
1 parent 692e1e9 commit b433b7d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.x.x

1.6.2 2009-10-01
* Fix Makefile patch from Havard Eidnes, better install.sh usage.
* Fix parse error on SOA serial of 2910532839.
Fix print of ';' and readback of '\;' in names, also for '\\'.
Expand Down
19 changes: 19 additions & 0 deletions linktest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,29 @@
#include "ldns/config.h"
#include <ldns/ldns.h>

void dotest(void)
{
ldns_rr* rr = 0;
ldns_status s;
const char* str = "r._dns-sd._udp.\\200\\015\\246\\0018\\;\\169. IN PTR";
str = "dr._dns-sd._udp.\\(\\242\\202. IN PTR";
str = "\\(blurb\\)\\;\\012\\010\\.\\.zaza.jelte.nlnetlabs.nl. IN PTR";
// \(blurb\)\;\012\010\.\.zaza.jelte.nlnetlabs.nl.
// str = "abc\\.zaza\\\\. IN PTR";
//s = ldns_rr_new_frm_str(&rr, str, LDNS_DEFAULT_TTL, 0, 0);
printf("%s\n", str);
s = ldns_rr_new_question_frm_str(&rr, str, NULL, NULL);
if(s != LDNS_STATUS_OK)
printf("error %s\n", ldns_get_errorstr_by_id(s));
else ldns_rr_print(stdout, rr);
ldns_rr_free(rr);
}

int
main(void)
{
ldns_rr *rr = ldns_rr_new();
dotest();

ldns_rr_free(rr);
return 0;
Expand Down

0 comments on commit b433b7d

Please sign in to comment.