summaryrefslogtreecommitdiff
path: root/src/common/shibari_log_query.c
blob: 6058e128ddb9eb3b8ae7685a9d9dc5e3f4c72805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ISC license. */

#include <skalibs/strerr.h>

#include <s6-dns/s6dns-domain.h>

#include <shibari/util.h>
#include <shibari/log.h>

void shibari_log_query (uint32_t v, s6dns_domain_t const *q, uint16_t qtype)
{
  char qs[256] ;
  s6dns_domain_t qe ;
  if (v < 2) return ;
  qe = *q ;
  if (!s6dns_domain_decode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ;
  strerr_warni4x("query ", shibari_util_qtype_str(qtype), " ", qs) ;
}