Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/include/in_cksum.h
Show All 31 Lines | |||||
* from: @(#)in_cksum.c 1.3 (Berkeley) 1/19/91 | * from: @(#)in_cksum.c 1.3 (Berkeley) 1/19/91 | ||||
* from: Id: in_cksum.c,v 1.8 1995/12/03 18:35:19 bde Exp | * from: Id: in_cksum.c,v 1.8 1995/12/03 18:35:19 bde Exp | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _MACHINE_IN_CKSUM_H_ | #ifndef _MACHINE_IN_CKSUM_H_ | ||||
#define _MACHINE_IN_CKSUM_H_ 1 | #define _MACHINE_IN_CKSUM_H_ 1 | ||||
#ifndef _SYS_CDEFS_H_ | |||||
#error this file needs sys/cdefs.h as a prerequisite | |||||
#endif | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#define in_cksum(m, len) in_cksum_skip(m, len, 0) | #define in_cksum(m, len) in_cksum_skip(m, len, 0) | ||||
/* | /* | ||||
* It it useful to have an Internet checksum routine which is inlineable | * It it useful to have an Internet checksum routine which is inlineable | ||||
* and optimized specifically for the task of computing IP header checksums | * and optimized specifically for the task of computing IP header checksums | ||||
* in the normal case (where there are no options and the header length is | * in the normal case (where there are no options and the header length is | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |