patch-1.3.4 linux/include/asm-sparc/ipsum.h
Next file: linux/include/asm-sparc/irq.h
Previous file: linux/include/asm-sparc/io.h
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Thu Jun 8 23:44:41 1995
- Orig file:
v1.3.3/linux/include/asm-sparc/ipsum.h
- Orig date:
Thu Jan 1 02:00:00 1970
diff -u --recursive --new-file v1.3.3/linux/include/asm-sparc/ipsum.h linux/include/asm-sparc/ipsum.h
@@ -0,0 +1,49 @@
+#ifndef __SPARC_IPSUM_H
+#define __SPARC_IPSUM_H
+/* ipsum.h: IP/UDP/TCP checksum routines on the Sparc.
+ *
+ * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
+ */
+
+/*
+ * This routine computes a UDP checksum.
+ */
+extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr)
+{
+ /* uhh.. eventually */
+ return 0;
+}
+
+/*
+ * This routine computes a TCP checksum.
+ */
+extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr)
+{
+ /* uhh.. eventually */
+ return 0;
+}
+
+
+/*
+ * This routine does all the checksum computations that don't
+ * require anything special (like copying or special headers).
+ */
+
+extern inline unsigned short ip_compute_csum(unsigned char * buff, int len)
+{
+ /* uhh.. eventually */
+ return 0;
+}
+
+/*
+ * This is a version of ip_compute_csum() optimized for IP headers, which
+ * always checksum on 4 octet boundaries.
+ */
+
+static inline unsigned short ip_fast_csum(unsigned char * buff, int wlen)
+{
+ /* uhh.. eventually */
+ return 0;
+}
+
+#endif /* !(__SPARC_IPSUM_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this