Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Feb 2002 14:57:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Feb 2002 14:57:46 -0500 Received: from courage.cs.stevens-tech.edu ([155.246.89.70]:38873 "HELO courage.cs.stevens-tech.edu") by vger.kernel.org with SMTP id ; Wed, 13 Feb 2002 14:57:40 -0500 Newsgroups: comp.os.linux.development.system Date: Wed, 13 Feb 2002 14:57:31 -0500 (EST) From: Marek Zawadzki To: Cc: Subject: Lost with UPD checksumming functions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/