| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
Android 4.4.3 release 1
|
| |
| |
| |
| |
| | |
Bug: 11542311
Change-Id: I5dd29805e12b919ae3105b6128aaedefd7e78b48
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Remove the initial checksum, which we don't use anywhere.
- Add the upper-layer protocol to the IPv6 function. Currently
this is always the same as the next header field in the IPv6
header, but technically it's the upper-layer header after all
the extension headers. This is required to support fragments.
Bug: 11542311
Change-Id: Ifa8af1bfda182711a0bba5c6452f44045fbd1a7f
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The entry point to the translation code is currently called
packet_handler and lives in clatd.c. Move it into translate.c
and rename it to translate_packet, since that's what it does.
Also get rid of some redundant includes.
Bug: 11542311
Change-Id: I821bb9590b9105ea1d425c3bbe0e634c4ce667b5
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently the checksums of translated packets are calculated
from scratch by checksumming the translated packet. This is slow
and does not work in the case of fragments, because the whole
packet is not available. Instead, calculate the checksum by
adjusting the checksum of the original packet.
Bug: 11542311
Bug: 12116252
Change-Id: I457347753d1bb5b23e3ae759bf2e4388102772d7
|
| |
| |
| |
| |
| | |
Bug: 11542311
Change-Id: I91040f35814bd7b23288228a7fdf80f1be2f5a04
|
| |
| |
| |
| | |
Change-Id: I4eb9eb407500893a27745ed2df6da9a378ddb159
|
| |
| |
| |
| |
| |
| |
| |
| | |
Remove unused variables -- they cause warnings (and errors with
-Werror) when building with clang 3.4.
Change-Id: I6ef10841bc1384bf256d73874ae1e709caa6b132
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
|
| |
| |
| |
| |
| |
| | |
This fixes a compiler warning.
Change-Id: I7f4a866fd5a65a64861fe22e9d32a1a8b8e9758d
|
| |\
| | |
| | |
| | | |
klp-dev
|
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 86cb1ac3d69805bebcac7a18b408d656603028f4.
Change-Id: If592b80e8107f468c2fe1caf00fcff49f25a9441
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit cb72f3643f475b70089e79108e16621787262e2b.
Change-Id: I10196a15fe92e281d4922f384f373a964ff703ec
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
-Werror"" into klp-dev
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit d0024fbd9285f473cd0053e4816393dbd0706b85.
Change-Id: I59201406f1f404b97c48877863835bdaeefc33e2
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | | |
GRE."" into klp-dev
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit f10644ce653e130280e93da8a1096454a4d8d61a.
Change-Id: Id70d629038e5269c64580b9a89f35179bc7c6926
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
them."" into klp-dev
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit 489e108988036facb25c59d59eb5250cf076fd3a.
Change-Id: I39e24afd8e9f1c862c0b7eea872c4fe31240aecf
|
| |\ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
translate.c."" into klp-dev
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
This reverts commit 6c9862b607a198cfd1ee0141e4a19fcaafdff729.
Change-Id: I4e55606814e650116e62ecb1f1d9a5a09c7ba2e0
|
| |\ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
into klp-dev
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
This reverts commit fea4efa398ff9c86c300f0c1be92611d1d1fd5ba.
Change-Id: If8199246b3f921e862a5e5ca587d5120906946e0
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
This reverts commit 866b4af18d8e9ef1020adc9accbb9f9de4c873dc.
Change-Id: I864dc0cbf3ad0dc04b86ed4e84a46aaf02778429
|
| |/ / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Bug: 11542311
Change-Id: I14a20b9ac669cdb5927f6ac26147bb0109099497
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
- Remove the initial checksum, which we don't use anywhere.
- Add the upper-layer protocol to the IPv6 function. Currently
this is always the same as the next header field in the IPv6
header, but technically it's the upper-layer header after all
the extension headers. This is required to support fragments.
Bug: 11542311
Change-Id: Ie1a20fa74ee5bc933c1014bab74ae2957979b2b8
|
| |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The entry point to the translation code is currently called
packet_handler and lives in clatd.c. Move it into translate.c
and rename it to translate_packet, since that's what it does.
Also get rid of some redundant includes.
Bug: 11542311
Change-Id: I8529fb87f3a86ee6724fad54787c33a5e86c56ab
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Currently the checksums of translated packets are calculated
from scratch by checksumming the translated packet. This is slow
and does not work in the case of fragments, because the whole
packet is not available. Instead, calculate the checksum by
adjusting the checksum of the original packet.
Bug: 11542311
Bug: 12116252
Change-Id: I6b78a94ca5bd96b13ee2653b6200551193b3dcc1
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Bug: 11542311
Change-Id: I174e0b268869bc77927feeee57003580c47c30f2
|
| |/ /
| | |
| | |
| | | |
Change-Id: I24847fa35644d92bff0fe31ccfc5c4b3e8705779
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Remove unused variables -- they cause warnings (and errors with
-Werror) when building with clang 3.4.
Change-Id: I03fff9b1b9d620763f41c8b31a19c4724726739c
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
|
| |
| |
| |
| |
| |
| | |
This fixes a compiler warning.
Change-Id: I14b5d3c871e9b2fdc8400d999e76e494ad510328
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Because of the way the tunnel pumps packets into the networking
stack, the netfilter xt_qtaguid module can't track stats
accurately: the totals don't add up.
With "clat" having an ip address, qtaguid will track stats
against it, which then can be deducted from the external iface.
Bug: 11687690
Change-Id: I22ebf26dd9249e821da87665d2bfb0e54d3cdf64
|
| |\
| | |
| | |
| | |
| | | |
* commit '3b0d387b0573657358c24208c8e201d377311132':
Remove debug tag from the clatd.conf build target
|
| | |\
| | | |
| | | |
| | | | |
Change-Id: Iaed3507a353fc057c8cc2bba136a043d61bc9e96
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 9730936
Change-Id: I2c50422c7b502d5b9bdc01afb55d25353f6c7088
|
|\| | |
| | | |
| | | |
| | | | |
Android 4.4 Release 1.0
|
| |\| |
| | | |
| | | |
| | | |
| | | | |
* commit '0d7837b9dddce300713bfcf2b84aecf2e360a502':
Remove debug tag from the clatd.conf build target
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
clatd is already built by default by generic_no_telephony.mk,
and clatd.conf will be included in the same file by
Id9ddf5541e894852eda8c471b9931c7c8bbbdc0a.
Bug: 9730936
Change-Id: I0d457c99642264abac4957d614b4eb40111c23b9
|
|\ \ \
| | |/
| |/|
| | | |
Android 4.3 release 2.1
|
| |/
| |
| |
| |
| | |
Bug: 9730936
Change-Id: I2c50422c7b502d5b9bdc01afb55d25353f6c7088
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When receiving ICMPv6 messages from IPv6-only nodes, use
255.0.0.<ttl> as a fake IPv4 source address. It's better than
nothing.
Bug: 8276725
Change-Id: Iae93f75764cb9cd875af9bb5f1862a0dce2c2fa7
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
1. Add a function that calculates the checksum of all the packet
components starting from the specified position. This
simplifies the code a bit and makes it easier to translate
nested packets like ICMP error messages.
2. Don't hardcode IP source and destination addresses. This is
required to translate ICMP error messages.
Bug: 8276725
Change-Id: I2cae45683ae3943e508608fd0a140180dbc60823
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The current code calls all the translation functions one after
another, accumulating the translated packet into local variables
on the stack and calling writev() at the end. This does not allow
calling the translation functions re-entrantly, which is needed,
for example, to translate ICMP errors (which contain the
packet that caused them). Define a clat_packet type to wrap the
array of iovecs and an enum of packet positions.
Also clean up the code a bit: get rid of a fair bit of duplicated
code (though there is still some left), get rid of some redundant
memcpy statements, fix style issues, etc.
Bug: 8276725
Change-Id: Ib58d2348894e82275234fc67dbdb1f82753f204f
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This simplifies the code and makes UDP and TCP look the same. It
will also make it easier to implement nested translation in the
future because there will only be one iovec array entry for the
transport layer header, regardless of whether we are translating
UDP or TCP and regardless of the presence of options.
Also get rid of a couple of memcpy statements by pointing to the
original data instead.
Bug: 8276725
Change-Id: I6a702aefdf3a070eedfc6f7d3ebec21880ecc22b
|
| |\| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a function for dumping iovecs, and make hexdumps clearer by
adding spaces between bytes.
Bug: 8276725
Change-Id: Ifb2f8317613d05fa6bd600700090a6df258cde08
|
| |\| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, the pseudo-header checksum calculation functions get
the transport layer length from the IP header. This requires that
the length be known at IP header construction time, which
does not allow transport layer translation functions to change
the length of the packet later. Have the transport functions
pass in the size directly.
Bug: 8276725
Change-Id: I76a93f5e66181bec21d68f779c68c54090a77c33
|