Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2006 22:41:04 GMT
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 93076 for review
Message-ID:  <200603092241.k29Mf4rN037253@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93076

Change 93076 by cognet@cognet on 2006/03/09 22:40:51

	grrr
	The asm in_cksum_hdr() is bogus. Bring in a C version until I
	understand what happens, so that Warner can still work.
	
	Your usual pointy hat to:	cognet

Affected files ...

.. //depot/projects/arm/src/sys/arm/arm/in_cksum.c#4 edit
.. //depot/projects/arm/src/sys/arm/include/in_cksum.h#3 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/arm/in_cksum.c#4 (text+ko) ====

@@ -130,3 +130,12 @@
 	REDUCE16;
 	return (~sum & 0xffff);
 }
+
+u_int in_cksum_hdr(const struct ip *ip)
+{
+	u_int64_t sum = do_cksum(ip, sizeof(struct ip));
+	union q_util q_util;
+    	union l_util l_util;
+	REDUCE16;
+	return (~sum & 0xffff);
+}			    

==== //depot/projects/arm/src/sys/arm/include/in_cksum.h#3 (text+ko) ====

@@ -46,6 +46,8 @@
 u_short in_addword(u_short sum, u_short b);
 u_short in_cksum_skip(struct mbuf *m, int len, int skip);
 u_int do_cksum(const void *, int);
+u_int in_cksum_hdr(const struct ip *);
+#if 0
 static __inline u_int
 in_cksum_hdr(const struct ip *ip)
 {
@@ -120,6 +122,7 @@
 		sum -= 0xffff;
 	return (~sum & 0xffff);
 }
+#endif
 
 static __inline u_short
 in_pseudo(u_int sum, u_int b, u_int c)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603092241.k29Mf4rN037253>