#include "net/base/network_interfaces.h"
#include "base/logging.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_POSIX)
#include <unistd.h>
#endif
#if BUILDFLAG(IS_WIN)
#include <winsock2.h>
#include "net/base/winsock_init.h"
#endif
namespace net {
NetworkInterface::NetworkInterface()
: … { … }
NetworkInterface::NetworkInterface(const std::string& name,
const std::string& friendly_name,
uint32_t interface_index,
NetworkChangeNotifier::ConnectionType type,
const IPAddress& address,
uint32_t prefix_length,
int ip_address_attributes,
std::optional<Eui48MacAddress> mac_address)
: … { … }
NetworkInterface::NetworkInterface(const NetworkInterface& other) = default;
NetworkInterface::~NetworkInterface() = default;
ScopedWifiOptions::~ScopedWifiOptions() = default;
std::string GetHostName() { … }
}