]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Add a separate file for IP checksumming
authorSimon Glass <sjg@chromium.org>
Tue, 20 Jan 2015 05:16:07 +0000 (22:16 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 24 Jan 2015 04:44:59 +0000 (21:44 -0700)
commit9b0e35cb4889eb04a7ea5dd648d73df0bf37cc68
tree5e3b454e1d4d9a07de41419d56c62b40633adddf
parent5da38086bd6c39efd09e57900702b99541844339
net: Add a separate file for IP checksumming

Move the checksum code out into its own file so it can be used elsewhere.
Also use a new version which supports a length which is not a multiple of
2 and add a new function to add two checksums.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/net.h
net/Makefile
net/checksum.c [new file with mode: 0644]