summaryrefslogtreecommitdiffstats
path: root/src/libknot/descriptor.c
diff options
context:
space:
mode:
authorJan Včelák <jv@fcelda.cz>2024-09-11 10:33:21 +0200
committerJan Včelák <jv@fcelda.cz>2024-09-11 10:33:21 +0200
commit314d0b1f10d8b51a85998a0701fadef82bb7f869 (patch)
tree1870b045845ee0d8656c18fce96b4a78af0861be /src/libknot/descriptor.c
parentdistro/deb: replace pkg-config with pkgconf as suggested by debian (diff)
downloadknot-314d0b1f10d8b51a85998a0701fadef82bb7f869.tar.xz
knot-314d0b1f10d8b51a85998a0701fadef82bb7f869.zip
libknot: add NXNAME meta type
Diffstat (limited to 'src/libknot/descriptor.c')
-rw-r--r--src/libknot/descriptor.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libknot/descriptor.c b/src/libknot/descriptor.c
index b5b87377d..c6f7f138e 100644
--- a/src/libknot/descriptor.c
+++ b/src/libknot/descriptor.c
@@ -134,6 +134,7 @@ static const knot_rdata_descriptor_t rdata_descriptors[] = {
KNOT_RDATA_WF_END }, "LP" },
[KNOT_RRTYPE_EUI48] = { { 6, KNOT_RDATA_WF_END }, "EUI48" },
[KNOT_RRTYPE_EUI64] = { { 8, KNOT_RDATA_WF_END }, "EUI64" },
+ [KNOT_RRTYPE_NXNAME] = { { KNOT_RDATA_WF_END }, "NXNAME" },
[KNOT_RRTYPE_TKEY] = { { KNOT_RDATA_WF_FIXED_DNAME,
KNOT_RDATA_WF_REMAINDER,
KNOT_RDATA_WF_END }, "TKEY" },
@@ -328,12 +329,13 @@ int knot_rrclass_from_string(const char *name, uint16_t *num)
_public_
int knot_rrtype_is_metatype(const uint16_t type)
{
- return type == KNOT_RRTYPE_SIG ||
- type == KNOT_RRTYPE_OPT ||
- type == KNOT_RRTYPE_TKEY ||
- type == KNOT_RRTYPE_TSIG ||
- type == KNOT_RRTYPE_IXFR ||
- type == KNOT_RRTYPE_AXFR ||
+ return type == KNOT_RRTYPE_SIG ||
+ type == KNOT_RRTYPE_OPT ||
+ type == KNOT_RRTYPE_NXNAME ||
+ type == KNOT_RRTYPE_TKEY ||
+ type == KNOT_RRTYPE_TSIG ||
+ type == KNOT_RRTYPE_IXFR ||
+ type == KNOT_RRTYPE_AXFR ||
type == KNOT_RRTYPE_ANY;
}