mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
resolve: update rcode table and align enum definitions
This commit is contained in:
parent
84960b7f3c
commit
a92ea352a5
@ -2732,6 +2732,7 @@ static const char* const dns_rcode_table[_DNS_RCODE_MAX_DEFINED] = {
|
||||
[DNS_RCODE_NXRRSET] = "NXRRSET",
|
||||
[DNS_RCODE_NOTAUTH] = "NOTAUTH",
|
||||
[DNS_RCODE_NOTZONE] = "NOTZONE",
|
||||
[DNS_RCODE_DSOTYPENI] = "DSOTYPENI",
|
||||
[DNS_RCODE_BADVERS] = "BADVERS",
|
||||
[DNS_RCODE_BADKEY] = "BADKEY",
|
||||
[DNS_RCODE_BADTIME] = "BADTIME",
|
||||
|
@ -270,6 +270,8 @@ enum {
|
||||
DNS_RCODE_NXRRSET = 8,
|
||||
DNS_RCODE_NOTAUTH = 9,
|
||||
DNS_RCODE_NOTZONE = 10,
|
||||
DNS_RCODE_DSOTYPENI = 11,
|
||||
/* 12-15 are unassigned. */
|
||||
DNS_RCODE_BADVERS = 16,
|
||||
DNS_RCODE_BADSIG = 16, /* duplicate value! */
|
||||
DNS_RCODE_BADKEY = 17,
|
||||
@ -279,8 +281,12 @@ enum {
|
||||
DNS_RCODE_BADALG = 21,
|
||||
DNS_RCODE_BADTRUNC = 22,
|
||||
DNS_RCODE_BADCOOKIE = 23,
|
||||
/* 24-3840 are unassigned. */
|
||||
/* 3841-4095 are for private use. */
|
||||
/* 4096-65534 are unassigned. */
|
||||
_DNS_RCODE_MAX_DEFINED,
|
||||
_DNS_RCODE_MAX = 4095 /* 4 bit rcode in the header plus 8 bit rcode in OPT, makes 12 bit */
|
||||
_DNS_RCODE_MAX = 65535, /* reserved */
|
||||
_DNS_RCODE_INVALID = -EINVAL,
|
||||
};
|
||||
|
||||
/* https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-11 */
|
||||
@ -304,7 +310,7 @@ enum {
|
||||
DNS_EDNS_OPT_CLIENT_TAG = 16,
|
||||
DNS_EDNS_OPT_SERVER_TAG = 17,
|
||||
_DNS_EDNS_OPT_MAX_DEFINED,
|
||||
_DNS_EDNS_OPT_INVALID = -EINVAL
|
||||
_DNS_EDNS_OPT_INVALID = -EINVAL,
|
||||
};
|
||||
|
||||
/* https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#extended-dns-error-codes */
|
||||
@ -340,7 +346,7 @@ enum {
|
||||
DNS_EDE_RCODE_TRANSPORT_POLICY = 28,
|
||||
DNS_EDE_RCODE_SYNTHESIZED = 29,
|
||||
_DNS_EDE_RCODE_MAX_DEFINED,
|
||||
_DNS_EDE_RCODE_INVALID = -EINVAL
|
||||
_DNS_EDE_RCODE_INVALID = -EINVAL,
|
||||
};
|
||||
|
||||
const char* dns_rcode_to_string(int i) _const_;
|
||||
|
Loading…
Reference in New Issue
Block a user