PERFORCE change 93076 for review
Olivier Houchard
cognet at FreeBSD.org
Thu Mar 9 14:41:06 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=93076
Change 93076 by cognet at 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)
More information about the p4-projects
mailing list