diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-10-09 22:29:45 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2014-10-28 15:30:45 +0900 |
commit | 9808952bdf2fa6ce4cbd790d1967691bb95bf327 (patch) | |
tree | a8d6d5b896805560ac662eee1c5790d14b863c88 /clatd.conf | |
parent | 74151e9d0cda83f77d9dbce62bf8a1340cb08386 (diff) | |
download | android_external_android-clat-9808952bdf2fa6ce4cbd790d1967691bb95bf327.tar.gz android_external_android-clat-9808952bdf2fa6ce4cbd790d1967691bb95bf327.tar.bz2 android_external_android-clat-9808952bdf2fa6ce4cbd790d1967691bb95bf327.zip |
Generate a random IID if one is not specified.
- Add code to generate a random IPv6 address that's
checksum-neutral with the NAT64 prefix and clat IPv4 address.
- Only calculate the IP address after the NAT64 prefix is known.
- Because the clat IPv6 address is no longer determinisitic,
modify interface_poll so it checks whether the prefix has
changed instead of checking whether the IPv6 address has
changed.
- Add/update unit tests.
Change-Id: Ia53716ca5315ebdd0eaa3ad3a07552bf18e9dd5c
Diffstat (limited to 'clatd.conf')
-rw-r--r-- | clatd.conf | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ -# host ID to use as the source of CLAT traffic -# this is a /128 taken out of the /64 routed to the phone -ipv6_host_id ::464 +# Host IID to use as the source of CLAT traffic. +# This is a /128 taken out of the /64 on the parent interface. +# A host IID of :: means to generate a checksum-neutral, random IID. +ipv6_host_id :: # ipv4 subnet for the local traffic to use. This is a /32 host address ipv4_local_subnet 192.0.0.4 |