#include "platform/base/interface_info.h"
#include <algorithm>
#include <utility>
namespace openscreen {
InterfaceInfo::InterfaceInfo() = default;
InterfaceInfo::InterfaceInfo(NetworkInterfaceIndex index,
const uint8_t hardware_address[6],
std::string name,
Type type,
std::vector<IPSubnet> addresses)
: … { … }
InterfaceInfo::~InterfaceInfo() = default;
IPSubnet::IPSubnet() = default;
IPSubnet::IPSubnet(IPAddress address, uint8_t prefix_length)
: … { … }
IPSubnet::~IPSubnet() = default;
IPAddress InterfaceInfo::GetIpAddressV4() const { … }
IPAddress InterfaceInfo::GetIpAddressV6() const { … }
bool InterfaceInfo::HasHardwareAddress() const { … }
std::ostream& operator<<(std::ostream& out, const IPSubnet& subnet) { … }
std::ostream& operator<<(std::ostream& out, InterfaceInfo::Type type) { … }
std::ostream& operator<<(std::ostream& out, const InterfaceInfo& info) { … }
}