Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/include/in_cksum.h
Show All 34 Lines | |||||
*/ | */ | ||||
#ifndef _MACHINE_IN_CKSUM_H_ | #ifndef _MACHINE_IN_CKSUM_H_ | ||||
#define _MACHINE_IN_CKSUM_H_ 1 | #define _MACHINE_IN_CKSUM_H_ 1 | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define HAVE_MD_IN_CKSUM | |||||
u_short in_cksum(struct mbuf *m, int len); | u_short in_cksum(struct mbuf *m, int len); | ||||
u_short in_addword(u_short sum, u_short b); | u_short in_addword(u_short sum, u_short b); | ||||
u_short in_cksum_skip(struct mbuf *m, int len, int skip); | u_short in_cksum_skip(struct mbuf *m, int len, int skip); | ||||
u_int do_cksum(const void *, int); | u_int do_cksum(const void *, int); | ||||
#if defined(IPVERSION) && (IPVERSION == 4) | #if defined(IPVERSION) && (IPVERSION == 4) | ||||
u_int in_cksum_hdr(const struct ip *); | u_int in_cksum_hdr(const struct ip *); | ||||
#endif | #endif | ||||
Show All 16 Lines |