diff options
Diffstat (limited to 'net/base/network_interfaces.h')
-rw-r--r-- | net/base/network_interfaces.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/base/network_interfaces.h b/net/base/network_interfaces.h index 73ad09a..6b21f51 100644 --- a/net/base/network_interfaces.h +++ b/net/base/network_interfaces.h @@ -40,6 +40,24 @@ struct Parsed; namespace net { +// A subset of IP address attributes which are actionable by the +// application layer. Currently unimplemented for all hosts; +// IP_ADDRESS_ATTRIBUTE_NONE is always returned. +enum IPAddressAttributes { + IP_ADDRESS_ATTRIBUTE_NONE = 0, + + // A temporary address is dynamic by nature and will not contain MAC + // address. Presence of MAC address in IPv6 addresses can be used to + // track an endpoint and cause privacy concern. Please refer to + // RFC4941. + IP_ADDRESS_ATTRIBUTE_TEMPORARY = 1 << 0, + + // A temporary address could become deprecated once the preferred + // lifetime is reached. It is still valid but shouldn't be used to + // create new connections. + IP_ADDRESS_ATTRIBUTE_DEPRECATED = 1 << 1, +}; + // struct that is used by GetNetworkList() to represent a network // interface. struct NET_EXPORT NetworkInterface { |