resolve: add missing ServiceNotProvided error to Varlink IDL (#40858)

The error is emitted by `vl_method_resolve_service_complete()` when an
SRV record with a root domain hostname is found, indicating the service
is explicitly not offered on the queried domain (RFC 2782 Usage Rules),

but was not declared in the `io.systemd.Resolve` interface definition.

Follow-up for 3d8f2c1464.
This commit is contained in:
Anton Tiurin
2026-03-02 04:22:14 +00:00
committed by GitHub
parent 1fc868ac6b
commit 2506a57bca

View File

@@ -345,6 +345,7 @@ static SD_VARLINK_DEFINE_ERROR(ResourceRecordTypeInvalidForQuery);
static SD_VARLINK_DEFINE_ERROR(ZoneTransfersNotPermitted);
static SD_VARLINK_DEFINE_ERROR(ResourceRecordTypeObsolete);
static SD_VARLINK_DEFINE_ERROR(InconsistentServiceRecords);
static SD_VARLINK_DEFINE_ERROR(ServiceNotProvided);
SD_VARLINK_DEFINE_INTERFACE(
io_systemd_Resolve,
@@ -415,4 +416,6 @@ SD_VARLINK_DEFINE_INTERFACE(
&vl_error_ZoneTransfersNotPermitted,
&vl_error_ResourceRecordTypeObsolete,
SD_VARLINK_SYMBOL_COMMENT("The DNS resource records of the specified service are not consistent (e.g. lacks a DNS-SD service type when resolved)."),
&vl_error_InconsistentServiceRecords);
&vl_error_InconsistentServiceRecords,
SD_VARLINK_SYMBOL_COMMENT("The service is explicitly not provided on the queried domain (RFC 2782 root domain SRV record)."),
&vl_error_ServiceNotProvided);