From: Andy P. <at...@us...> - 2001-02-18 20:37:43
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/lib In directory usw-pr-cvs1:/tmp/cvs-serv15834/arch/vax/lib Added Files: checksum.c Log Message: Add network checksum stubs. --- NEW FILE --- /* * arch/vax/lib/checksum.c * Fast network checksum routines * * * This file contains network checksum routines * FIXME: implement. */ #include <linux/string.h> #include <linux/types.h> #include <asm/uaccess.h> #include <asm/byteorder.h> #include <asm/checksum.h> /* * computes a partial checksum, e.g. for TCP/UDP fragments */ unsigned int csum_partial (const unsigned char *buff, int len, unsigned int sum) { /* * Experiments with ethernet and slip connections show that buff * is aligned on either a 2-byte or 4-byte boundary. */ return sum; } /* * Fold a partial checksum without adding pseudo headers */ unsigned short csum_fold(unsigned int sum) { return ((unsigned short) ~sum); } |