Current code for IPv4 header checksum calculation assumes that packet data is aligned on 2-byte boundary, that there are no optional headers, etc. Rewrite checksumming code to properly copy & process headers. Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsoleni...@linaro.org
----------------github------------------------ /** Email created from pull request 132 (lumag:fix-checksum) ** https://github.com/Linaro/odp/pull/132 ** Patch: https://github.com/Linaro/odp/pull/132.patch ** Base sha: 8b435cae63abbf0d44899b5bb87bb0aeb488ca2d ** Merge commit sha: edc2f53d5489223c567ff2d0d7a04242256760f8 **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ CHECK: spaces preferred around that '/' (ctx:VxV) #56: FILE: helper/include/odp/helper/ip.h:111: + buf + sizeof(*ip)/2); ^ total: 0 errors, 0 warnings, 1 checks, 149 lines checked to_send-p-000.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. ----------------/checkpatch.pl------------------------