libnm-core: add 'use-vc' DNS option

The option forces the use of TCP for DNS resolutions.
This commit is contained in:
Beniamino Galvani 2016-04-03 23:08:38 +02:00
parent 2b394d0092
commit d6d42e0825
2 changed files with 2 additions and 0 deletions

View file

@ -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 }
};

View file

@ -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;