/* * Copyright 2023 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "rtc_base/net_test_helpers.h" #include <memory> #include <string> #if defined(WEBRTC_WIN) #include <ws2spi.h> #include <ws2tcpip.h> #include "rtc_base/win/windows_version.h" #endif #if defined(WEBRTC_POSIX) && !defined(__native_client__) #include <arpa/inet.h> #if defined(WEBRTC_ANDROID) #include "rtc_base/ifaddrs_android.h" #else #include <ifaddrs.h> #endif #endif // defined(WEBRTC_POSIX) && !defined(__native_client__) namespace rtc { bool HasIPv4Enabled() { … } bool HasIPv6Enabled() { … } } // namespace rtc