Sergey Ulanov | 5c33235ae | 2017-07-06 23:55:07 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors. All rights reserved. |
guoweis | 25a5997a | 2014-10-23 20:30:18 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
eroman | c69886a4 | 2015-06-03 18:19:52 | [diff] [blame] | 5 | #ifndef NET_BASE_NETWORK_INTERFACES_POSIX_H_ |
| 6 | #define NET_BASE_NETWORK_INTERFACES_POSIX_H_ |
guoweis | 25a5997a | 2014-10-23 20:30:18 | [diff] [blame] | 7 | |
Sergey Ulanov | 5c33235ae | 2017-07-06 23:55:07 | [diff] [blame] | 8 | // This file provides some basic functionality shared between |
| 9 | // network_interfaces_linux.cc and network_interfaces_getifaddrs.cc. |
guoweis | 7eb7ab5 | 2014-11-14 17:42:56 | [diff] [blame] | 10 | |
| 11 | #include <string> |
| 12 | |
| 13 | struct sockaddr; |
guoweis | 25a5997a | 2014-10-23 20:30:18 | [diff] [blame] | 14 | |
| 15 | namespace net { |
| 16 | namespace internal { |
Sergey Ulanov | 5c33235ae | 2017-07-06 23:55:07 | [diff] [blame] | 17 | |
guoweis | 7eb7ab5 | 2014-11-14 17:42:56 | [diff] [blame] | 18 | bool ShouldIgnoreInterface(const std::string& name, int policy); |
| 19 | bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr); |
guoweis | 25a5997a | 2014-10-23 20:30:18 | [diff] [blame] | 20 | |
| 21 | } // namespace internal |
guoweis | 25a5997a | 2014-10-23 20:30:18 | [diff] [blame] | 22 | } // namespace net |
| 23 | |
eroman | c69886a4 | 2015-06-03 18:19:52 | [diff] [blame] | 24 | #endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_ |