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