blob: 98084ae2e66c7929c2d35567f2cf62b8d705c906 [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Paul Stewart0af98bf2011-05-10 17:38:08 -07002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Ben Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_DEVICE_INFO_H_
6#define SHILL_DEVICE_INFO_H_
Paul Stewart0af98bf2011-05-10 17:38:08 -07007
Darin Petkove6193c02011-08-11 12:42:40 -07008#include <map>
Ben Chancd477322014-10-17 14:19:30 -07009#include <memory>
mukesh agrawal8f317b62011-07-15 11:53:23 -070010#include <set>
11#include <string>
Paul Stewart9a908082011-08-31 12:18:48 -070012#include <vector>
mukesh agrawal8f317b62011-07-15 11:53:23 -070013
Eric Shienbrood3e20a232012-02-16 11:35:56 -050014#include <base/callback.h>
Paul Stewart050cfc02012-07-06 20:38:54 -070015#include <base/cancelable_callback.h>
Ben Chana0ddf462014-02-06 11:32:42 -080016#include <base/files/file_path.h>
Paul Stewartb50f0b92011-05-16 16:31:42 -070017#include <base/memory/ref_counted.h>
Darin Petkov5a850472012-06-06 15:44:24 +020018#include <base/memory/weak_ptr.h>
Darin Petkov0828f5f2011-08-11 10:18:52 -070019#include <gtest/gtest_prod.h> // for FRIEND_TEST
Paul Stewart0af98bf2011-05-10 17:38:08 -070020
Chris Masone9be4a9d2011-05-16 15:44:09 -070021#include "shill/device.h"
Peter Qiu8d6b5972014-10-28 15:33:34 -070022#include "shill/net/byte_string.h"
23#include "shill/net/ip_address.h"
24#include "shill/net/rtnl_listener.h"
25#include "shill/net/shill_time.h"
Paul Stewartcba0f7f2012-02-29 16:33:05 -080026#include "shill/technology.h"
Paul Stewart0af98bf2011-05-10 17:38:08 -070027
28namespace shill {
29
Paul Stewartb50f0b92011-05-16 16:31:42 -070030class Manager;
Thieu Le3426c8f2012-01-11 17:35:11 -080031class Metrics;
Paul Stewart2ddf2c62013-04-16 09:47:34 -070032class NetlinkManager;
Wade Guthrie7347bf22013-04-30 11:21:51 -070033class Nl80211Message;
Paul Stewart8c116a92012-05-02 18:30:03 -070034class RoutingTable;
Paul Stewart9a908082011-08-31 12:18:48 -070035class RTNLHandler;
Chris Masone2aa97072011-08-09 17:35:08 -070036class RTNLMessage;
Gary Morain41780232012-07-31 15:08:31 -070037class Sockets;
Paul Stewartb50f0b92011-05-16 16:31:42 -070038
Darin Petkov5a850472012-06-06 15:44:24 +020039class DeviceInfo : public base::SupportsWeakPtr<DeviceInfo> {
Paul Stewart0af98bf2011-05-10 17:38:08 -070040 public:
Paul Stewart9a908082011-08-31 12:18:48 -070041 struct AddressData {
42 AddressData()
Paul Stewart7355ce12011-09-02 10:47:01 -070043 : address(IPAddress::kFamilyUnknown), flags(0), scope(0) {}
Paul Stewart9a908082011-08-31 12:18:48 -070044 AddressData(const IPAddress &address_in,
45 unsigned char flags_in,
46 unsigned char scope_in)
47 : address(address_in), flags(flags_in), scope(scope_in) {}
48 IPAddress address;
49 unsigned char flags;
50 unsigned char scope;
51 };
52
Jason Glasgowabc54032012-04-20 16:08:32 -040053 // Device name prefix for modem pseudo devices used in testing.
54 static const char kModemPseudoDeviceNamePrefix[];
Christopher Wileye049cc52012-09-10 14:36:57 -070055 // Device name prefix for virtual ethernet devices used in testing.
56 static const char kEthernetPseudoDeviceNamePrefix[];
Ben Chanb061f892013-02-27 17:46:55 -080057 // Time interval for polling for link statistics.
58 static const int kRequestLinkStatisticsIntervalMilliseconds;
Jason Glasgowabc54032012-04-20 16:08:32 -040059
Paul Stewartb50f0b92011-05-16 16:31:42 -070060 DeviceInfo(ControlInterface *control_interface,
61 EventDispatcher *dispatcher,
Thieu Le3426c8f2012-01-11 17:35:11 -080062 Metrics *metrics,
Paul Stewartb50f0b92011-05-16 16:31:42 -070063 Manager *manager);
Darin Petkov5a850472012-06-06 15:44:24 +020064 virtual ~DeviceInfo();
Darin Petkov887f2982011-07-14 16:10:17 -070065
Peter Qiu7e8b8ee2014-11-25 13:55:57 -080066 virtual void AddDeviceToBlackList(const std::string &device_name);
67 virtual void RemoveDeviceFromBlackList(const std::string &device_name);
mukesh agrawal12533ad2013-08-01 15:43:23 -070068 virtual bool IsDeviceBlackListed(const std::string &device_name);
Paul Stewart0af98bf2011-05-10 17:38:08 -070069 void Start();
70 void Stop();
Darin Petkov887f2982011-07-14 16:10:17 -070071
Ben Chan5086b972013-01-15 21:51:38 -080072 std::vector<std::string> GetUninitializedTechnologies() const;
73
Darin Petkov6f9eaa32011-08-09 15:26:44 -070074 // Adds |device| to this DeviceInfo instance so that we can handle its link
75 // messages, and registers it with the manager.
David Rochbergfa1d31d2012-03-20 10:38:07 -040076 virtual void RegisterDevice(const DeviceRefPtr &device);
Darin Petkov6f9eaa32011-08-09 15:26:44 -070077
Jason Glasgowe9089492012-02-23 17:57:37 -050078 // Remove |device| from this DeviceInfo. This function should only
79 // be called for cellular devices because the lifetime of the
80 // cellular devices is controlled by the Modem object and its
81 // communication to modem manager, rather than by RTNL messages.
David Rochbergfa1d31d2012-03-20 10:38:07 -040082 virtual void DeregisterDevice(const DeviceRefPtr &device);
Jason Glasgowe9089492012-02-23 17:57:37 -050083
Paul Stewartc8f4bef2011-12-13 09:45:51 -080084 virtual DeviceRefPtr GetDevice(int interface_index) const;
Paul Stewart32852962011-08-30 14:06:53 -070085 virtual bool GetMACAddress(int interface_index, ByteString *address) const;
Gary Morainbf74a672012-07-30 16:27:19 -070086
87 // Queries the kernel for a MAC address for |interface_index|. Returns an
88 // empty ByteString on failure.
89 virtual ByteString GetMACAddressFromKernel(int interface_index) const;
Gary Morain41780232012-07-31 15:08:31 -070090
Paul Stewart6950ba52013-12-05 08:28:14 -080091 // Queries the kernel for the MAC address of |peer| on |interface_index|.
92 // Returns true and populates |mac_address| on success, otherwise returns
93 // false.
94 virtual bool GetMACAddressOfPeer(int interface_index,
95 const IPAddress &peer,
96 ByteString *mac_address) const;
97
Chris Masone626719f2011-08-18 16:58:48 -070098 virtual bool GetFlags(int interface_index, unsigned int *flags) const;
Paul Stewart1ac4e842012-07-10 12:58:12 -070099 virtual bool GetByteCounts(int interface_index,
Ben Chan7fab8972014-08-10 17:14:46 -0700100 uint64_t *rx_bytes, uint64_t *tx_bytes) const;
Paul Stewart9a908082011-08-31 12:18:48 -0700101 virtual bool GetAddresses(int interface_index,
102 std::vector<AddressData> *addresses) const;
Paul Stewarta0db0ff2013-12-09 09:48:47 -0800103
Paul Stewart05a42c22012-08-02 16:47:21 -0700104 // Flush all addresses associated with |interface_index|.
Paul Stewart9a908082011-08-31 12:18:48 -0700105 virtual void FlushAddresses(int interface_index) const;
Paul Stewart05a42c22012-08-02 16:47:21 -0700106 // Returns whether this interface does not have |this_address|
107 // but has another non-temporary address of the same family.
108 virtual bool HasOtherAddress(
109 int interface_index, const IPAddress &this_address) const;
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700110
111 // Get the preferred globally scoped IPv6 address for |interface_index|.
112 // This method returns true and sets |address| if a primary IPv6 address
113 // exists. Otherwise it returns false and leaves |address| unmodified.
Paul Stewartd4f26482014-04-25 19:12:03 -0700114 virtual bool GetPrimaryIPv6Address(int interface_index, IPAddress *address);
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700115
Peter Qiu98551702014-07-28 13:28:53 -0700116 // Get the IPv6 DNS server addresses for |interface_index|. This method
117 // returns true and sets |address_list| and |life_time_seconds| if the IPv6
118 // DNS server addresses exists. Otherwise, it returns false and leave
119 // |address_list| and |life_time_seconds| unmodified. |life_time_seconds|
120 // indicates the number of the seconds the DNS server is still valid for at
121 // the time of this function call. Value of 0 means the DNS server is not
122 // valid anymore, and value of 0xFFFFFFFF means the DNS server is valid
123 // forever.
124 virtual bool GetIPv6DnsServerAddresses(int interface_index,
125 std::vector<IPAddress> *address_list,
Ben Chan7fab8972014-08-10 17:14:46 -0700126 uint32_t *life_time_seconds);
Peter Qiu98551702014-07-28 13:28:53 -0700127
Paul Stewarta0db0ff2013-12-09 09:48:47 -0800128 // Returns true if any of the addresses on |interface_index| are on the
129 // same network prefix as |address|.
130 virtual bool HasDirectConnectivityTo(
131 int interface_index, const IPAddress &address) const;
132
Paul Stewartca6abd42012-03-01 15:45:29 -0800133 virtual bool CreateTunnelInterface(std::string *interface_name) const;
Prabhu Kaliamoorthi127b3412014-10-16 13:00:25 +0200134 virtual int OpenTunnelInterface(const std::string &interface_name) const;
Paul Stewartca6abd42012-03-01 15:45:29 -0800135 virtual bool DeleteInterface(int interface_index) const;
Paul Stewart0af98bf2011-05-10 17:38:08 -0700136
Darin Petkovf8046b82012-04-24 16:29:23 +0200137 // Returns the interface index for |interface_name| or -1 if unknown.
138 virtual int GetIndex(const std::string &interface_name) const;
139
Paul Stewart0af98bf2011-05-10 17:38:08 -0700140 private:
Paul Stewart050cfc02012-07-06 20:38:54 -0700141 friend class DeviceInfoDelayedCreationTest;
Paul Stewartca876ee2012-04-21 08:55:58 -0700142 friend class DeviceInfoTechnologyTest;
Darin Petkov887f2982011-07-14 16:10:17 -0700143 friend class DeviceInfoTest;
Darin Petkov0828f5f2011-08-11 10:18:52 -0700144 FRIEND_TEST(CellularTest, StartLinked);
Ben Chan4b285862012-10-10 22:52:16 -0700145 FRIEND_TEST(DeviceInfoTest, CreateDeviceWiMax);
Peter Qiu9f5159e2014-09-12 16:50:14 -0700146 FRIEND_TEST(DeviceInfoTest, DeviceRemovedEvent);
Ben Chan5086b972013-01-15 21:51:38 -0800147 FRIEND_TEST(DeviceInfoTest, GetUninitializedTechnologies);
Thieu Leb27beee2012-04-20 09:19:06 -0700148 FRIEND_TEST(DeviceInfoTest, HasSubdir); // For HasSubdir.
Paul Stewartd55f6ae2014-04-24 16:34:21 -0700149 FRIEND_TEST(DeviceInfoTest, IPv6AddressChanged); // For infos_.
Paul Stewart1ac4e842012-07-10 12:58:12 -0700150 FRIEND_TEST(DeviceInfoTest, RequestLinkStatistics);
Paul Stewart8c116a92012-05-02 18:30:03 -0700151 FRIEND_TEST(DeviceInfoTest, StartStop);
Peter Qiu98551702014-07-28 13:28:53 -0700152 FRIEND_TEST(DeviceInfoTest, IPv6DnsServerAddressesChanged); // For infos_.
Darin Petkov887f2982011-07-14 16:10:17 -0700153
Darin Petkove6193c02011-08-11 12:42:40 -0700154 struct Info {
Ben Chan5086b972013-01-15 21:51:38 -0800155 Info()
156 : flags(0),
157 rx_bytes(0),
158 tx_bytes(0),
159 has_addresses_only(false),
160 technology(Technology::kUnknown)
161 {}
Darin Petkove6193c02011-08-11 12:42:40 -0700162
163 DeviceRefPtr device;
Darin Petkovf8046b82012-04-24 16:29:23 +0200164 std::string name;
Paul Stewart32852962011-08-30 14:06:53 -0700165 ByteString mac_address;
Paul Stewart9a908082011-08-31 12:18:48 -0700166 std::vector<AddressData> ip_addresses;
Peter Qiu98551702014-07-28 13:28:53 -0700167 std::vector<IPAddress> ipv6_dns_server_addresses;
Ben Chan7fab8972014-08-10 17:14:46 -0700168 uint32_t ipv6_dns_server_lifetime_seconds;
Peter Qiu98551702014-07-28 13:28:53 -0700169 time_t ipv6_dns_server_received_time_seconds;
Darin Petkove6193c02011-08-11 12:42:40 -0700170 unsigned int flags;
Ben Chan7fab8972014-08-10 17:14:46 -0700171 uint64_t rx_bytes;
172 uint64_t tx_bytes;
Paul Stewart1ac4e842012-07-10 12:58:12 -0700173
Paul Stewart8c116a92012-05-02 18:30:03 -0700174 // This flag indicates that link information has not been retrieved yet;
175 // only the ip_addresses field is valid.
176 bool has_addresses_only;
Ben Chan5086b972013-01-15 21:51:38 -0800177
178 Technology::Identifier technology;
Darin Petkove6193c02011-08-11 12:42:40 -0700179 };
180
Paul Stewartca876ee2012-04-21 08:55:58 -0700181 // Root of the kernel sysfs directory holding network device info.
182 static const char kDeviceInfoRoot[];
Ben Chan4e64d2d2012-05-16 00:02:25 -0700183 // Name of the "cdc_ether" driver. This driver is not included in the
184 // kModemDrivers list because we need to do additional checking.
185 static const char kDriverCdcEther[];
Ben Chan4eb4ddf2013-06-20 22:16:56 -0700186 // Name of the "cdc_ncm" driver. This driver is not included in the
187 // kModemDrivers list because we need to do additional checking.
188 static const char kDriverCdcNcm[];
Ben Chan4e64d2d2012-05-16 00:02:25 -0700189 // Name of the GDM WiMAX driver.
190 static const char kDriverGdmWiMax[];
mukesh agrawal93a29ed2012-04-17 16:13:01 -0700191 // Name of the virtio network driver.
192 static const char kDriverVirtioNet[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700193 // Sysfs path to a device uevent file.
Paul Stewartbf1861b2011-08-23 15:45:35 -0700194 static const char kInterfaceUevent[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700195 // Content of a device uevent file that indicates it is a wifi device.
Paul Stewart9364c4c2011-12-06 17:12:42 -0800196 static const char kInterfaceUeventWifiSignature[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700197 // Sysfs path to a device via its interface name.
198 static const char kInterfaceDevice[];
199 // Sysfs path to the driver of a device via its interface name.
Paul Stewartbf1861b2011-08-23 15:45:35 -0700200 static const char kInterfaceDriver[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700201 // Sysfs path to the file that is used to determine if this is tun device.
Paul Stewartcba0f7f2012-02-29 16:33:05 -0800202 static const char kInterfaceTunFlags[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700203 // Sysfs path to the file that is used to determine if a wifi device is
204 // operating in monitor mode.
Paul Stewart2001a422011-12-15 10:20:09 -0800205 static const char kInterfaceType[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700206 // Modem drivers that we support.
Paul Stewartb50f0b92011-05-16 16:31:42 -0700207 static const char *kModemDrivers[];
Thieu Le8f1c8352012-04-16 11:02:12 -0700208 // Path to the tun device.
Paul Stewartcba0f7f2012-02-29 16:33:05 -0800209 static const char kTunDeviceName[];
Paul Stewart050cfc02012-07-06 20:38:54 -0700210 // Time to wait before registering devices which need extra time to detect.
211 static const int kDelayedDeviceCreationSeconds;
Paul Stewartb50f0b92011-05-16 16:31:42 -0700212
Paul Stewart8c116a92012-05-02 18:30:03 -0700213 // Create a Device object for the interface named |linkname|, with a
214 // string-form MAC address |address|, whose kernel interface index
215 // is |interface_index| and detected technology is |technology|.
Paul Stewart050cfc02012-07-06 20:38:54 -0700216 virtual DeviceRefPtr CreateDevice(const std::string &link_name,
217 const std::string &address,
218 int interface_index,
219 Technology::Identifier technology);
Paul Stewart8c116a92012-05-02 18:30:03 -0700220
Paul Stewartca876ee2012-04-21 08:55:58 -0700221 // Return the FilePath for a given |path_name| in the device sysinfo for
222 // a specific interface |iface_name|.
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800223 base::FilePath GetDeviceInfoPath(const std::string &iface_name,
Paul Stewartca876ee2012-04-21 08:55:58 -0700224 const std::string &path_name);
225 // Return the contents of the device info file |path_name| for interface
226 // |iface_name| in output parameter |contents_out|. Returns true if file
227 // read succeeded, false otherwise.
228 bool GetDeviceInfoContents(const std::string &iface_name,
229 const std::string &path_name,
230 std::string *contents_out);
231
232 // Return the filepath for the target of the device info symbolic link
233 // |path_name| for interface |iface_name| in output parameter |path_out|.
234 // Returns true if symbolic link read succeeded, false otherwise.
235 bool GetDeviceInfoSymbolicLink(const std::string &iface_name,
236 const std::string &path_name,
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800237 base::FilePath *path_out);
Paul Stewartca876ee2012-04-21 08:55:58 -0700238 // Classify the device named |iface_name|, and return an identifier
239 // indicating its type.
Paul Stewart050cfc02012-07-06 20:38:54 -0700240 virtual Technology::Identifier GetDeviceTechnology(
241 const std::string &iface_name);
Thieu Le8f1c8352012-04-16 11:02:12 -0700242 // Checks the device specified by |iface_name| to see if it's a modem device.
243 // This method assumes that |iface_name| has already been determined to be
Ben Chan4eb4ddf2013-06-20 22:16:56 -0700244 // using the cdc_ether / cdc_ncm driver.
245 bool IsCdcEthernetModemDevice(const std::string &iface_name);
Thieu Leb27beee2012-04-20 09:19:06 -0700246 // Returns true if |base_dir| has a subdirectory named |subdir|.
247 // |subdir| can be an immediate subdirectory of |base_dir| or can be
248 // several levels deep.
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800249 static bool HasSubdir(const base::FilePath &base_dir,
250 const base::FilePath &subdir);
Darin Petkov6f9eaa32011-08-09 15:26:44 -0700251
Chris Masone2aa97072011-08-09 17:35:08 -0700252 void AddLinkMsgHandler(const RTNLMessage &msg);
253 void DelLinkMsgHandler(const RTNLMessage &msg);
254 void LinkMsgHandler(const RTNLMessage &msg);
Paul Stewart9a908082011-08-31 12:18:48 -0700255 void AddressMsgHandler(const RTNLMessage &msg);
Peter Qiu98551702014-07-28 13:28:53 -0700256 void RdnssMsgHandler(const RTNLMessage &msg);
Paul Stewart0af98bf2011-05-10 17:38:08 -0700257
Darin Petkove3e1cfa2011-08-11 13:41:17 -0700258 const Info *GetInfo(int interface_index) const;
Darin Petkove6193c02011-08-11 12:42:40 -0700259 void RemoveInfo(int interface_index);
Paul Stewart050cfc02012-07-06 20:38:54 -0700260 void DelayDeviceCreation(int interface_index);
261 void DelayedDeviceCreationTask();
Paul Stewart1ac4e842012-07-10 12:58:12 -0700262 void RetrieveLinkStatistics(int interface_index, const RTNLMessage &msg);
263 void RequestLinkStatistics();
Darin Petkov67d8ecf2011-07-26 16:03:30 -0700264
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700265 // Use nl80211 to get information on |interface_index|.
266 void GetWiFiInterfaceInfo(int interface_index);
Wade Guthrie7347bf22013-04-30 11:21:51 -0700267 void OnWiFiInterfaceInfoReceived(const Nl80211Message &message);
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700268
Gary Morain41780232012-07-31 15:08:31 -0700269 void set_sockets(Sockets* sockets) { sockets_.reset(sockets); }
270
Paul Stewartb50f0b92011-05-16 16:31:42 -0700271 ControlInterface *control_interface_;
Paul Stewart0af98bf2011-05-10 17:38:08 -0700272 EventDispatcher *dispatcher_;
Thieu Le3426c8f2012-01-11 17:35:11 -0800273 Metrics *metrics_;
Paul Stewartb50f0b92011-05-16 16:31:42 -0700274 Manager *manager_;
Darin Petkovf8046b82012-04-24 16:29:23 +0200275
276 std::map<int, Info> infos_; // Maps interface index to Info.
277 std::map<std::string, int> indices_; // Maps interface name to index.
278
Eric Shienbrood3e20a232012-02-16 11:35:56 -0500279 base::Callback<void(const RTNLMessage &)> link_callback_;
280 base::Callback<void(const RTNLMessage &)> address_callback_;
Peter Qiu98551702014-07-28 13:28:53 -0700281 base::Callback<void(const RTNLMessage &)> rdnss_callback_;
Ben Chancd477322014-10-17 14:19:30 -0700282 std::unique_ptr<RTNLListener> link_listener_;
283 std::unique_ptr<RTNLListener> address_listener_;
284 std::unique_ptr<RTNLListener> rdnss_listener_;
mukesh agrawal8f317b62011-07-15 11:53:23 -0700285 std::set<std::string> black_list_;
Albert Chaulk0e1cdea2013-02-27 15:32:55 -0800286 base::FilePath device_info_root_;
Darin Petkove6193c02011-08-11 12:42:40 -0700287
Paul Stewart1ac4e842012-07-10 12:58:12 -0700288 // Keep track of devices that require a delayed call to CreateDevice().
Paul Stewart050cfc02012-07-06 20:38:54 -0700289 base::CancelableClosure delayed_devices_callback_;
290 std::set<int> delayed_devices_;
291
Paul Stewart1ac4e842012-07-10 12:58:12 -0700292 // Maintain a callback for the periodic link statistics poll task.
293 base::CancelableClosure request_link_statistics_callback_;
294
Paul Stewart8c116a92012-05-02 18:30:03 -0700295 // Cache copy of singleton pointers.
296 RoutingTable *routing_table_;
Paul Stewart9a908082011-08-31 12:18:48 -0700297 RTNLHandler *rtnl_handler_;
Paul Stewart2ddf2c62013-04-16 09:47:34 -0700298 NetlinkManager *netlink_manager_;
Paul Stewart9a908082011-08-31 12:18:48 -0700299
Gary Morain41780232012-07-31 15:08:31 -0700300 // A member of the class so that a mock can be injected for testing.
Ben Chancd477322014-10-17 14:19:30 -0700301 std::unique_ptr<Sockets> sockets_;
Gary Morain41780232012-07-31 15:08:31 -0700302
Peter Qiu98551702014-07-28 13:28:53 -0700303 Time *time_;
304
Darin Petkove6193c02011-08-11 12:42:40 -0700305 DISALLOW_COPY_AND_ASSIGN(DeviceInfo);
Paul Stewart0af98bf2011-05-10 17:38:08 -0700306};
307
Paul Stewart0af98bf2011-05-10 17:38:08 -0700308} // namespace shill
309
Ben Chanc45688b2014-07-02 23:50:45 -0700310#endif // SHILL_DEVICE_INFO_H_