summaryrefslogtreecommitdiffstats
path: root/clatd_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* am fee9afb1: Android-Clatd: Remove unused variableAndreas Gampe2014-11-251-3/+0
|\ | | | | | | | | * commit 'fee9afb1a5d9f7f5df0c79e29368c61d7da16fb8': Android-Clatd: Remove unused variable
| * Android-Clatd: Remove unused variableAndreas Gampe2014-11-241-3/+0
| | | | | | | | | | | | For build-system CFLAGS clean-up, fix unused-but-set variables. Change-Id: I3fc6b0d9bec87cd54d7b5199108cff576b4be677
* | am 2596f42a: Never use a statically-configured IID on wifi.Lorenzo Colitti2014-11-181-0/+6
|\ \ | | | | | | | | | | | | * commit '2596f42a4f4c42bfb96ccbfc2700dbf70502ec75': Never use a statically-configured IID on wifi.
| * | Never use a statically-configured IID on wifi.Lorenzo Colitti2014-11-101-0/+6
| | | | | | | | | | | | | | | Bug: 12111730 Change-Id: I062d81f2b65e6e89baae0f840cbd673f8051d523
* | | am 798f9934: Use different IPv4 addresses on different clat interfaces.Lorenzo Colitti2014-11-031-0/+53
|\| | | | | | | | | | | | | | * commit '798f9934fca523dfb57136bd185cf6e9460323ad': Use different IPv4 addresses on different clat interfaces.
| * | Use different IPv4 addresses on different clat interfaces.Lorenzo Colitti2014-11-011-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the code would use 192.0.0.4 on all clat interfaces. This works, but it has the problem when a clat interface goes down, we do not reset TCP connections on its IP address if there is another clat interface up. Fix this by assigning every clat interface its own IP address in 192.0.0.0/29. Bug: 12111730 Change-Id: I28c831acd93b0980efea8e90c1cdf8b607beac68
* | | am 9808952b: Generate a random IID if one is not specified.Lorenzo Colitti2014-10-301-6/+204
|\| | | |/ |/| | | | | * commit '9808952bdf2fa6ce4cbd790d1967691bb95bf327': Generate a random IID if one is not specified.
| * Generate a random IID if one is not specified.Lorenzo Colitti2014-10-281-6/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * Use a raw socket to send IPv6 packets instead of a tun.Lorenzo Colitti2014-06-111-12/+25
| | | | | | | | | | | | | | This will allow us to bind the socket to a particular network. Bug: 15340961 Change-Id: I50857d372955f2b6f7035157c2968cda72c32585
| * Make translate_packet take a fd instead of a tun header.Lorenzo Colitti2014-06-101-6/+4
| | | | | | | | | | | | | | | | This will make it easier to use separate fds for reading and writing in a future change. Bug: 15340961 Change-Id: I5b081b05765cae0488ac599be5738ce9737cae41
* | Remove unused variables.Chih-Hung Hsieh2014-08-261-2/+1
| | | | | | | | | | BUG: 17281763 Change-Id: Ia9cbda2897e46ca757910d59d0cbb6de07d55482
* | Use a raw socket to send IPv6 packets instead of a tun.Lorenzo Colitti2014-06-131-12/+25
| | | | | | | | | | | | | | | | | | This will allow us to bind the socket to a particular network. (cherry picked from commit 10e8827d636a72a7bcdfd52d15bad9342ae2a0a6) Bug: 15340961 Change-Id: I0b62ef96364a90b9c0a9e3ac3ba97b5c19c89b69
* | Make translate_packet take a fd instead of a tun header.Lorenzo Colitti2014-06-131-6/+4
|/ | | | | | | | | | This will make it easier to use separate fds for reading and writing in a future change. (cherry picked from commit 91d0f1bc6dd24e54ed3caef9b08525b332ab0adf) Bug: 15340961 Change-Id: I374b85f28ae570dc82d21e1ea82a2f072fd7fba3
* Minor code clean-up for GCC 4.9.Ben Cheng2014-04-031-5/+5
| | | | | | | | | - Tidy up "signed vs unsigned" comparison - Unconditionally initialize the "protocol" variable. This is a false-positive warning as protocol is indeed initialized when used, but GCC failed to detect the dependency between protocol and ip6. Change-Id: I8146898d91d45531c3de73403e0df3330c0a2043
* Use uint8_t not char for binary data to avoid -Wall -Werror issues on x86 buildsBrian Carlstrom2014-02-241-51/+51
| | | | Change-Id: Ib61e67f15360c27c3ebf61f870a9482217c52357
* Add a unit test for 464xlat translation code.Lorenzo Colitti2014-02-221-0/+672
Bug: 11542311 Change-Id: Ibc7f156a6abb96c9bf4983ecd63b052fe308e422