Skip to content

Commit

Permalink
oops, removed test code
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Oct 1, 2009
1 parent b433b7d commit a35346d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions linktest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,10 @@
#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 a35346d

Please sign in to comment.