[LCP]tcp checksum

Jack Lloyd lloyd at acm.jhu.edu
Sat Jan 4 02:08:01 UTC 2003


Linux kernel, if you don't care about it being GPLed. Try the FreeBSD
kernel if you want something you can use in commercial code. If you just
want to know the algorithm, look in the TCP RFC or any good networking book
(I can only imagine that TCP/IP Illustrated has some discussion of the
checksum).

Computer arch books will explain how one's complement addition works, for
example Patterson and Hennesy. That book is well worth reading anyway.
-Jack

On Thu, 2 Jan 2003, Srinath Thiruvengadam wrote:

> hello all,
>
> i am working on the tcp handshake.. and i need the TCP checksum
> algorithm..
> where can i get that from ?




More information about the linuxCprogramming mailing list