network_interfaces_posix.h 657 B

12345678910111213141516171819202122
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_BASE_NETWORK_INTERFACES_POSIX_H_
  5. #define NET_BASE_NETWORK_INTERFACES_POSIX_H_
  6. // This file provides some basic functionality shared between
  7. // network_interfaces_linux.cc and network_interfaces_getifaddrs.cc.
  8. #include <string>
  9. struct sockaddr;
  10. namespace net::internal {
  11. bool ShouldIgnoreInterface(const std::string& name, int policy);
  12. bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr);
  13. } // namespace net::internal
  14. #endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_