Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: net/base/net_util.h

Issue 538243003: proposed interface change at //net for webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split address_tracker_linux into a different CL. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/p2p_messages.h ('k') | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index c74dfd2ea48486b08e16be9fdb700b9d99f06bd0..5f537159c815cbd98c743e09040d74f38ac5595b 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -438,16 +438,41 @@ NET_EXPORT_PRIVATE int GetPortFromSockaddr(const struct sockaddr* address,
// machine.
NET_EXPORT_PRIVATE bool IsLocalhost(const std::string& host);
+// A subset of IP address attributes which is actionable to
pauljensen 2014/09/18 14:29:54 is->are to->by the? Also add "Currently unimplemen
+// application layer.
+enum IPAddressAttributes {
+ IP_ADDRESS_ATTRIBUTE_NONE = 0,
+
+ // Temporary address is dynamic by nature and will not carry MAC
+ // address.
+ IP_ADDRESS_ATTRIBUTE_TEMPORARY = 1 << 0,
+
+ // Temporary address could become deprecated once the preferred
+ // lifetime is reached. It is still valid but shouldn't be used to
+ // create new connection.
+ IP_ADDRESS_ATTRIBUTE_DEPRECATED = 1 << 1,
+};
+
// struct that is used by GetNetworkList() to represent a network
// interface.
struct NET_EXPORT NetworkInterface {
NetworkInterface();
+
NetworkInterface(const std::string& name,
pauljensen 2014/09/18 14:29:54 Dead?
const std::string& friendly_name,
uint32 interface_index,
NetworkChangeNotifier::ConnectionType type,
const IPAddressNumber& address,
size_t network_prefix);
+
+ NetworkInterface(const std::string& name,
+ const std::string& friendly_name,
+ uint32 interface_index,
+ NetworkChangeNotifier::ConnectionType type,
+ const IPAddressNumber& address,
+ size_t network_prefix,
+ int ip_address_attributes);
+
~NetworkInterface();
std::string name;
@@ -456,6 +481,7 @@ struct NET_EXPORT NetworkInterface {
NetworkChangeNotifier::ConnectionType type;
IPAddressNumber address;
size_t network_prefix;
+ int ip_address_attributes; // Combination of |IPAddressAttributes|.
};
typedef std::vector<NetworkInterface> NetworkInterfaceList;
« no previous file with comments | « content/common/p2p_messages.h ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698