#ifndef CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_
#define CHROMEOS_NETWORK_NETWORK_IP_CONFIG_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/callback.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
enum IPConfigType {
IPCONFIG_TYPE_UNKNOWN,
IPCONFIG_TYPE_IPV4,
IPCONFIG_TYPE_IPV6,
IPCONFIG_TYPE_DHCP,
IPCONFIG_TYPE_BOOTP,
IPCONFIG_TYPE_ZEROCONF,
IPCONFIG_TYPE_DHCP6,
IPCONFIG_TYPE_PPP,
};
struct CHROMEOS_EXPORT NetworkIPConfig {
NetworkIPConfig(const std::string& device_path, IPConfigType type,
const std::string& address, const std::string& netmask,
const std::string& gateway, const std::string& name_servers);
~NetworkIPConfig();
std::string ToString() const;
std::string device_path;
IPConfigType type;
std::string address;
std::string netmask;
std::string gateway;
std::string name_servers;
};
typedef std::vector<NetworkIPConfig> NetworkIPConfigVector;
typedef base::Callback<void(const NetworkIPConfigVector& ip_configs,
const std::string& hardware_address)>
NetworkGetIPConfigsCallback;
}
#endif