shill: Ignore certan DNS search paths
Add a manager property to provide a list of DNS Search paths
that should be ignored when applying DHCP parameters. This
covers a list of DNS search suffixes that are popularly
provided, but are generally unlikely to provide any useful
results, therefore significantly reducing DNS lookup performance.
BUG=chromium-os:34495
TEST=Unit-tests + Manual: Add a domain to the default search list and make sure it is filtered from the "search" line in resolv.conf.
CQ-DEPENDS: I54bdd33a05bb704d8c3ff05f71e034fe42635e89
Change-Id: Id92b39f1ad0ae64b3ff50c7671cdf388d92a07af
Reviewed-on: https://gerrit.chromium.org/gerrit/33460
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/default_profile.h b/default_profile.h
index 4ed7fc2..50c82bb 100644
--- a/default_profile.h
+++ b/default_profile.h
@@ -33,7 +33,8 @@
const Manager::Properties &manager_props);
virtual ~DefaultProfile();
- // Loads global configuration into manager properties.
+ // Loads global configuration into manager properties. This should
+ // only be called by the Manager.
virtual bool LoadManagerProperties(Manager::Properties *manager_props);
// Override the Profile superclass implementation to accept all Ethernet
@@ -67,6 +68,7 @@
static const char kStorageArpGateway[];
static const char kStorageCheckPortalList[];
static const char kStorageHostName[];
+ static const char kStorageIgnoredDNSSearchPaths[];
static const char kStorageLinkMonitorTechnologies[];
static const char kStorageName[];
static const char kStorageOfflineMode[];