Remove debug tag from the clatd.conf build target

Bug: 9730936
Change-Id: I2c50422c7b502d5b9bdc01afb55d25353f6c7088
Reconcile with jb-mr2-release - do not merge

Change-Id: Iaed3507a353fc057c8cc2bba136a043d61bc9e96
am 3b0d387b: (-s ours) Reconcile with jb-mr2-release - do not merge

* commit '3b0d387b0573657358c24208c8e201d377311132':
  Remove debug tag from the clatd.conf build target
Add ip6 dummy address to keep data usage stats consistent.

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
DO NOT MERGE: Remove two almost-unused include files.

This fixes a compiler warning.

Change-Id: I14b5d3c871e9b2fdc8400d999e76e494ad510328
DO NOT MERGE: Remove unused variables

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>
DO NOT MERGE: Fix compiler warnings and enable -Wall -Werror

Change-Id: I24847fa35644d92bff0fe31ccfc5c4b3e8705779
DO NOT MERGE: Add generic IP packet code and use it for GRE.

Bug: 11542311
Change-Id: I174e0b268869bc77927feeee57003580c47c30f2
DO NOT MERGE: Fix up checksums instead of recalculating them.

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
DO NOT MERGE: Move translation entry point into translate.c.

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
DO NOT MERGE: Modify the pseudo-header checksum functions.

- 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
DO NOT MERGE: Support translating fragmented packets.

Bug: 11542311
Change-Id: I14a20b9ac669cdb5927f6ac26147bb0109099497
Revert "DO NOT MERGE: Remove two almost-unused include files."

This reverts commit 86cb1ac3d69805bebcac7a18b408d656603028f4.

Change-Id: If592b80e8107f468c2fe1caf00fcff49f25a9441
Revert "DO NOT MERGE: Remove unused variables"

This reverts commit cb72f3643f475b70089e79108e16621787262e2b.

Change-Id: I10196a15fe92e281d4922f384f373a964ff703ec
Revert "DO NOT MERGE: Fix compiler warnings and enable -Wall -Werror"

This reverts commit d0024fbd9285f473cd0053e4816393dbd0706b85.

Change-Id: I59201406f1f404b97c48877863835bdaeefc33e2
Revert "DO NOT MERGE: Add generic IP packet code and use it for GRE."

This reverts commit f10644ce653e130280e93da8a1096454a4d8d61a.

Change-Id: Id70d629038e5269c64580b9a89f35179bc7c6926
Revert "DO NOT MERGE: Fix up checksums instead of recalculating them."

This reverts commit 489e108988036facb25c59d59eb5250cf076fd3a.

Change-Id: I39e24afd8e9f1c862c0b7eea872c4fe31240aecf
Revert "DO NOT MERGE: Move translation entry point into translate.c."

This reverts commit 6c9862b607a198cfd1ee0141e4a19fcaafdff729.

Change-Id: I4e55606814e650116e62ecb1f1d9a5a09c7ba2e0
Revert "DO NOT MERGE: Modify the pseudo-header checksum functions."

This reverts commit fea4efa398ff9c86c300f0c1be92611d1d1fd5ba.

Change-Id: If8199246b3f921e862a5e5ca587d5120906946e0
Revert "DO NOT MERGE: Support translating fragmented packets."

This reverts commit 866b4af18d8e9ef1020adc9accbb9f9de4c873dc.

Change-Id: I864dc0cbf3ad0dc04b86ed4e84a46aaf02778429