|
|
|
@ -212,12 +212,6 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize
|
|
|
|
|
subst = delim2 + 1;
|
|
|
|
|
regexp[regexp_len-1] = 0;
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
printf("Pattern: %s\n", pattern);
|
|
|
|
|
printf("Subst: %s\n", subst);
|
|
|
|
|
printf("Input: %s\n", naptrinput);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* now do the regex wizardry.
|
|
|
|
|
*/
|
|
|
|
@ -312,9 +306,6 @@ struct enum_context {
|
|
|
|
|
static int txt_callback(void *context, char *answer, int len, char *fullanswer)
|
|
|
|
|
{
|
|
|
|
|
struct enum_context *c = (struct enum_context *)context;
|
|
|
|
|
#if 0
|
|
|
|
|
printf("ENUMTXT Called\n");
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (answer == NULL) {
|
|
|
|
|
c->txt = NULL;
|
|
|
|
@ -364,7 +355,6 @@ static int enum_callback(void *context, char *answer, int len, char *fullanswer)
|
|
|
|
|
if (p) {
|
|
|
|
|
c->naptr_rrs = (struct enum_naptr_rr*)p;
|
|
|
|
|
memcpy(&c->naptr_rrs[c->naptr_rrs_count].naptr, answer, sizeof(struct naptr));
|
|
|
|
|
/* printf("order=%d, pref=%d\n", ntohs(c->naptr_rrs[c->naptr_rrs_count].naptr.order), ntohs(c->naptr_rrs[c->naptr_rrs_count].naptr.pref)); */
|
|
|
|
|
c->naptr_rrs[c->naptr_rrs_count].result = strdup(c->dst);
|
|
|
|
|
c->naptr_rrs[c->naptr_rrs_count].tech = strdup(c->tech);
|
|
|
|
|
c->naptr_rrs[c->naptr_rrs_count].sort_pos = c->naptr_rrs_count;
|
|
|
|
|