From d6d42e082598f91d13314f94b9f3909435fa90d8 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Sun, 3 Apr 2016 23:08:38 +0200 Subject: [PATCH] libnm-core: add 'use-vc' DNS option The option forces the use of TCP for DNS resolutions. --- libnm-core/nm-setting-ip-config.c | 1 + libnm-core/nm-setting-ip-config.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libnm-core/nm-setting-ip-config.c b/libnm-core/nm-setting-ip-config.c index a69045b36e..4e3088a98a 100644 --- a/libnm-core/nm-setting-ip-config.c +++ b/libnm-core/nm-setting-ip-config.c @@ -59,6 +59,7 @@ const NMUtilsDNSOptionDesc _nm_utils_dns_option_descs[] = { { NM_SETTING_DNS_OPTION_SINGLE_REQUEST, FALSE, FALSE }, { NM_SETTING_DNS_OPTION_SINGLE_REQUEST_REOPEN, FALSE, FALSE }, { NM_SETTING_DNS_OPTION_NO_TLD_QUERY, FALSE, FALSE }, + { NM_SETTING_DNS_OPTION_USE_VC, FALSE, FALSE }, { NULL, FALSE, FALSE } }; diff --git a/libnm-core/nm-setting-ip-config.h b/libnm-core/nm-setting-ip-config.h index 6d18233875..39e4c9f083 100644 --- a/libnm-core/nm-setting-ip-config.h +++ b/libnm-core/nm-setting-ip-config.h @@ -163,6 +163,7 @@ void nm_ip_route_set_attribute (NMIPRoute *route, #define NM_SETTING_DNS_OPTION_SINGLE_REQUEST "single-request" #define NM_SETTING_DNS_OPTION_SINGLE_REQUEST_REOPEN "single-request-reopen" #define NM_SETTING_DNS_OPTION_NO_TLD_QUERY "no-tld-query" +#define NM_SETTING_DNS_OPTION_USE_VC "use-vc" struct _NMSettingIPConfig { NMSetting parent;