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

#include <errno.h>

#include <skalibs/posixishard.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 ;