[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in csum_partial?
Opps!! It was a stupid mistake, I should have folded it b4 supplying it to
csum_partial for the second time ... sorry
--
sourav
> Hi,
> Does anybody know any bug in csum_partial in 2.2.14. I am using it
> and not getting 0 after recomputing the checksum with the old value and
> folding it :
>
> chksum = csum_partial(data_from, data_len, 0);
> printk("folded csum = %hd\n", \
> (unsigned short)csum_fold(csum_partial(data_from, data_len, chksum)));
>
> data_from, data_len etc, all are 16 byte aligned. But printk is not 0!!
>
> Anybody having any idea.
>
> Thanks
> sourav
>
>
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/