summaryrefslogtreecommitdiff
path: root/dhcp_config.h
diff options
context:
space:
mode:
authorDarin Petkov <petkov@chromium.org>2011-06-01 18:25:07 -0700
committerDarin Petkov <petkov@chromium.org>2011-06-02 10:07:49 -0700
commit50308cd0cc10594b9f50fc4191ba4e9bd1fec0e5 (patch)
treece34c1110666e2e78ed5cbf6e9e0aba543eb4dae /dhcp_config.h
parentab87ea4808bd7d002eaad8b021f14c1cad90f65a (diff)
downloadshill-50308cd0cc10594b9f50fc4191ba4e9bd1fec0e5.tar.gz
Basic DHCP framework and DHCPCD proxies.
DHCPProvider singleton will instantiate and supply DHCPConfig objects. Each DHCPConfig object corresponds to a separate DHCP client (dhcpcd). Each DHCPConfig object will be associated with a single DHCPCDProxy object to communicate with that client. DHCPProvider will use a DHCPCDListener singleton to figure the D-Bus destination of each spawned DHCP client dispatch signals to its DHCPCDProxy. Also fix dhcpcd.xml (this needs to be fixed in dhcpcd itself, really). BUG=chromium-os:16013 TEST=manual by modifying shill_main and instantiating the proxies. Change-Id: I8fb0eadb8c751365997db2ed2bdfde0711c362a3 Reviewed-on: http://gerrit.chromium.org/gerrit/1934 Tested-by: Darin Petkov <petkov@chromium.org> Reviewed-by: Darin Petkov <petkov@chromium.org>
Diffstat (limited to 'dhcp_config.h')
-rw-r--r--dhcp_config.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/dhcp_config.h b/dhcp_config.h
new file mode 100644
index 00000000..735fa9c3
--- /dev/null
+++ b/dhcp_config.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_DHCP_CONFIG_
+#define SHILL_DHCP_CONFIG_
+
+#include "shill/ipconfig.h"
+
+namespace shill {
+
+class DHCPConfig : public IPConfig {
+ public:
+ explicit DHCPConfig(const Device &device);
+ virtual ~DHCPConfig();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DHCPConfig);
+};
+
+} // namespace shill
+
+#endif // SHILL_DHCP_CONFIG_