lkml.org 
[lkml]   [1999]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Checksum on Alpha
Bharadwaj Yadavalli wrote:
>
> Can somebody kindly explain me why the implementation of
> csum_partial_copy_from_user()
> in linux/arch/alpha/lib/csum_partial_copy.c returns a 16-bit
> checksum whereas its x86
> counterpart in linux/linux/arch/i386/lib/checksum.S returns
> 32-bit checksum?

it's only a partial checksum - the checksum can be computed
from multiples of 16 bits, which then have to be added together
to get the final value. see csum_fold() and rfc1071.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog