blob: 9a2bc4001999fe1352a2d48deddf80540201d56b [file] [log] [blame]
Sergey Ulanov5c33235ae2017-07-06 23:55:071// Copyright 2015 The Chromium Authors. All rights reserved.
guoweis25a5997a2014-10-23 20:30:182// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
eromanc69886a42015-06-03 18:19:525#ifndef NET_BASE_NETWORK_INTERFACES_POSIX_H_
6#define NET_BASE_NETWORK_INTERFACES_POSIX_H_
guoweis25a5997a2014-10-23 20:30:187
Sergey Ulanov5c33235ae2017-07-06 23:55:078// This file provides some basic functionality shared between
9// network_interfaces_linux.cc and network_interfaces_getifaddrs.cc.
guoweis7eb7ab52014-11-14 17:42:5610
11#include <string>
12
13struct sockaddr;
guoweis25a5997a2014-10-23 20:30:1814
15namespace net {
16namespace internal {
Sergey Ulanov5c33235ae2017-07-06 23:55:0717
guoweis7eb7ab52014-11-14 17:42:5618bool ShouldIgnoreInterface(const std::string& name, int policy);
19bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr);
guoweis25a5997a2014-10-23 20:30:1820
21} // namespace internal
guoweis25a5997a2014-10-23 20:30:1822} // namespace net
23
eromanc69886a42015-06-03 18:19:5224#endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_