From: TCY16 Date: Fri, 12 Aug 2022 08:57:29 +0000 (+0200) Subject: add SVCB dohpath support X-Git-Tag: 1.8.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ddabdf16070de0d1ac12bb034292662cf27bbe;p=thirdparty%2Fldns.git add SVCB dohpath support --- diff --git a/ldns/rdata.h b/ldns/rdata.h index 4a7dcb37..c8a0396c 100644 --- a/ldns/rdata.h +++ b/ldns/rdata.h @@ -180,7 +180,8 @@ enum ldns_enum_svcparam_key LDNS_SVCPARAM_KEY_IPV4HINT = 4, LDNS_SVCPARAM_KEY_ECH = 5, LDNS_SVCPARAM_KEY_IPV6HINT = 6, - LDNS_SVCPARAM_KEY_LAST_KEY = 6, + LDNS_SVCPARAM_KEY_DOHPATH = 7, + LDNS_SVCPARAM_KEY_LAST_KEY = 7, LDNS_SVCPARAM_KEY_RESERVED = 65535 }; typedef enum ldns_enum_svcparam_key ldns_svcparam_key; diff --git a/str2host.c b/str2host.c index 0639d3f1..5b78e5bc 100644 --- a/str2host.c +++ b/str2host.c @@ -2189,7 +2189,8 @@ static svcparam_key_def svcparam_key_defs[] = { { "mandatory" , 9 } , { "port" , 4 } , { "ipv4hint" , 8 } , { "ech" , 3 } - , { "ipv6hint" , 8 } }; + , { "ipv6hint" , 8 } + , { "dohpath" , 7 } }; static const size_t svcparam_key_defs_len = sizeof(svcparam_key_defs) / sizeof(svcparam_key_def);