mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
25 lines
683 B
C
25 lines
683 B
C
|
// Copyright 2015 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#ifndef NET_BASE_NETWORK_INTERFACES_POSIX_H_
|
||
|
#define NET_BASE_NETWORK_INTERFACES_POSIX_H_
|
||
|
|
||
|
// This file provides some basic functionality shared between
|
||
|
// network_interfaces_linux.cc and network_interfaces_getifaddrs.cc.
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
struct sockaddr;
|
||
|
|
||
|
namespace net {
|
||
|
namespace internal {
|
||
|
|
||
|
bool ShouldIgnoreInterface(const std::string& name, int policy);
|
||
|
bool IsLoopbackOrUnspecifiedAddress(const sockaddr* addr);
|
||
|
|
||
|
} // namespace internal
|
||
|
} // namespace net
|
||
|
|
||
|
#endif // NET_BASE_NETWORK_INTERFACES_POSIX_H_
|