commit | 5a50c0283346a197cda7af19e68f611f14b8fe57 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Mon Feb 10 09:20:05 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Feb 14 13:33:04 2014 +0900 |
tree | 1cccafeba5bbd41374daa0aed35379faa4c26a88 | |
parent | a33592bd08a20c6a521b8508975b7a74ecdf4f03 [diff] |
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