lkml.org 
[lkml]   [2002]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectLost with UPD checksumming functions
Hello,

I am implementing a new transport protocol (basing on UDP
implementation) and I need to checksum every "datagram" I send
(using the same, TCP/UDP algorithm).

I am really lost in all those numerous checksumming functions in the
kernel and I'd like to know if there is any simple receipe to calculate
the checksum (I have the header, options and payload). I like the
function:

unsigned int csum_partial(const unsigned char * buff, int len, unsigned
int sum);

and I tried to call it aggainst my enitre (skb->data, skb->len, 0)
but the problem is it returns different value then the checkum calculated
by, say, UDP.
Please help.

-marek

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

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.200 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site