diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/shibari_log_query.c | 2 | ||||
-rw-r--r-- | src/common/shibari_log_queryplus.c | 2 | ||||
-rw-r--r-- | src/common/shibari_util_qtype_str.c | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/common/shibari_log_query.c b/src/common/shibari_log_query.c index b04ee27..6058e12 100644 --- a/src/common/shibari_log_query.c +++ b/src/common/shibari_log_query.c @@ -13,6 +13,6 @@ void shibari_log_query (uint32_t v, s6dns_domain_t const *q, uint16_t qtype) s6dns_domain_t qe ; if (v < 2) return ; qe = *q ; - if (!s6dns_domain_encode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; + if (!s6dns_domain_decode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; strerr_warni4x("query ", shibari_util_qtype_str(qtype), " ", qs) ; } diff --git a/src/common/shibari_log_queryplus.c b/src/common/shibari_log_queryplus.c index 7e7fecc..b372526 100644 --- a/src/common/shibari_log_queryplus.c +++ b/src/common/shibari_log_queryplus.c @@ -17,7 +17,7 @@ void shibari_log_queryplus (uint32_t v, s6dns_domain_t const *q, uint16_t qtype, s6dns_domain_t qe ; if (v < 2) return ; qe = *q ; - if (!s6dns_domain_encode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; + if (!s6dns_domain_decode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; fmti[ip46_fmt(fmti, ip)] = 0 ; fmtp[uint16_fmt(fmtp, port)] = 0 ; strerr_warni8x("query ", shibari_util_qtype_str(qtype), " ", qs, " ip ", fmti, " port ", fmtp) ; diff --git a/src/common/shibari_util_qtype_str.c b/src/common/shibari_util_qtype_str.c index 97b701d..cbbaa74 100644 --- a/src/common/shibari_util_qtype_str.c +++ b/src/common/shibari_util_qtype_str.c @@ -13,7 +13,7 @@ static char const *const qtype_table[262] = "MF", "CNAME", "SOA", - "MB" + "MB", "MG", "MR", "NULL", @@ -116,7 +116,6 @@ static char const *const qtype_table[262] = "LP", "EUI48", "EUI64", - "unassigned", "unassigned", "unassigned", @@ -256,7 +255,6 @@ static char const *const qtype_table[262] = "unassigned", "unassigned", "unassigned", - "TKEY", "TSIG", "IXFR", |