summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_constants_error.c
blob: 68a8b4d690dde65a1f72204286dfc89b048f8863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ISC license. */

#include <errno.h>
#include <skalibs/error.h>
#include <s6-dns/s6dns-constants.h>

static s6dns_constants_error_message_t const array[] =
{
  { ENETUNREACH, "no available DNS server" },
  { EILSEQ, "server did not understand query" },
  { EBUSY, "server failure" },
  { ENOENT, "no such domain" },
  { ENOTSUP, "not implemented in server" },
  { ECONNREFUSED, "server refused" },
  { EIO, "unknown network error" },
  { EAGAIN, "query still processing" },
  { ETIMEDOUT, "query timed out" },
  { EPROTO, "malformed packet" },
  { EDOM, "internal error (please submit a bug-report)" },
  { -1, "unknown error" }
} ;

s6dns_constants_error_message_t const *const s6dns_constants_error = array ;