chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/addrfam.c (adns_addr2text): Don't print junk in debugging output.
[adns]
/
src
/
general.c
diff --git
a/src/general.c
b/src/general.c
index 4404b31109191d4754f65246beb654bd2324fee4..052c7e1556a77ad067b9b49b0fe13fd6cddd203e 100644
(file)
--- a/
src/general.c
+++ b/
src/general.c
@@
-83,7
+83,9
@@
void adns__vdiag(adns_state ads, const char *pfx, adns_initflags prevent,
}
if (serv>=0) {
}
if (serv>=0) {
- adns__lprintf(ads,"%sNS=%s",bef,inet_ntoa(ads->servers[serv].addr));
+ assert(ads->servers[serv].addr.sa.sa_family==AF_INET);
+ adns__lprintf(ads,"%sNS=%s",bef,
+ inet_ntoa(ads->servers[serv].addr.inet.sin_addr));
bef=", "; aft=")\n";
}
bef=", "; aft=")\n";
}
@@
-196,6
+198,9
@@
const char *adns__diag_domain(adns_state ads, int serv, adns_query qu,
return vb->buf;
}
return vb->buf;
}
+int adns__getrrsz_default(const typeinfo *typei, adns_rrtype type)
+ { return typei->fixed_rrsz; }
+
adns_status adns_rr_info(adns_rrtype type,
const char **rrtname_r, const char **fmtname_r,
int *len_r,
adns_status adns_rr_info(adns_rrtype type,
const char **rrtname_r, const char **fmtname_r,
int *len_r,
@@
-209,7
+214,7
@@
adns_status adns_rr_info(adns_rrtype type,
if (rrtname_r) *rrtname_r= typei->rrtname;
if (fmtname_r) *fmtname_r= typei->fmtname;
if (rrtname_r) *rrtname_r= typei->rrtname;
if (fmtname_r) *fmtname_r= typei->fmtname;
- if (len_r) *len_r= typei->
rrsz
;
+ if (len_r) *len_r= typei->
getrrsz(typei, type)
;
if (!datap) return adns_s_ok;
if (!datap) return adns_s_ok;