diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-05-06 18:18:32 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-05-06 18:18:32 +0000 |
commit | eb42c6c103538dc9a55b1e22edfd3799577bec87 (patch) | |
tree | 0126140d823ad127311756b2f7e74a87f5cc5256 /sys/i386/include/in_cksum.h | |
parent | 4a110a737fc15fae4519d5b86df549c0d0eaeca8 (diff) | |
download | FreeBSD-src-eb42c6c103538dc9a55b1e22edfd3799577bec87.zip FreeBSD-src-eb42c6c103538dc9a55b1e22edfd3799577bec87.tar.gz |
Make in_cksum() a macro call to in_cksum_skip(), since it provides the
same functionality. Sharing code should help cache issues.
Remove in_cksum_partial, since its not being used, and we now have
a way to compute partial checksums on mbuf chains.
Diffstat (limited to 'sys/i386/include/in_cksum.h')
-rw-r--r-- | sys/i386/include/in_cksum.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/i386/include/in_cksum.h b/sys/i386/include/in_cksum.h index 3c971ef..363c193 100644 --- a/sys/i386/include/in_cksum.h +++ b/sys/i386/include/in_cksum.h @@ -41,6 +41,8 @@ #include <sys/cdefs.h> +#define in_cksum(m, len) in_cksum_skip(m, len, 0) + /* * It it useful to have an Internet checksum routine which is inlineable * and optimized specifically for the task of computing IP header checksums @@ -116,11 +118,8 @@ u_int in_cksum_hdr __P((const struct ip *)); #endif -typedef unsigned in_psum_t; #ifdef _KERNEL u_short in_cksum_skip(struct mbuf *m, int len, int skip); -in_psum_t in_cksum_partial(in_psum_t psum, const u_short *w, int len); -int in_cksum_finalize(in_psum_t psum); #endif /* _KERNEL */ #endif /* _MACHINE_IN_CKSUM_H_ */ |