#
# USAGI Linux - IPv6 Privacy Extensions (RFC 3041) support -
#
# $USAGI: PrivacyExtensions,v 1.5 2005/06/14 05:38:16 kozakai Exp $
#

Nodes use IPv6 stateless address auto-configuration to generate
address. The address contain embedded IEEE Identifiers (cf. MAC
Address)
If you don't want to disclose your IEEE identifier to anybody,
you can use Privacy Extensions (RFC3041).
Please enable following kernel option (if you want).

   Networking options  --->  
     [*]     IPv6: Privacy Extensions (RFC 3041) support
                   CONFIG_IPV6_PRIVACY

By default, kernel doesn't generate temporary addresses. If you want kernel
to generate them, do
  # echo 1 >/proc/sys/net/ipv6/conf/<interface>/use_tempaddr
or
  # sysctl -w net.ipv6.conf.<interface>.use_tempaddr=1

where <interface> is the interface name on which you want to generate them.

If you want to return the value to the initial, set it to 0.


By default, kernel won't use temporary addresses unless application explicitly
bind them.

To prefer temporary addresses over public addresses, do
  # echo 2 >/proc/sys/net/ipv6/conf/all/use_tempaddr
or
  # sysctl -w net.ipv6.conf.all.use_tempaddr=2

If you want to return the value to the initial, set it to 1.


Temporary addresses have valid and preferred lifetimes. You can
know it by the following commands. Temporary addresses are going
to be regenerated according to these value (the unit is one second)

To get the preferred life time:
 # cat /proc/sys/net/ipv6/conf/<interface>/temp_prefered_lft
 or
 # sysctl net.ipv6.conf.<interface>.temp_prefered_lft

To get the valid life time:
 # cat /proc/sys/net/ipv6/conf/<interface>/temp_valid_lft
  or
 # sysctl net.ipv6.conf.<interface>.temp_valid_lft

NOTE: net.ipv6.conf.all.temp_{prefered,valid}_lft are ignored.
