Olivier, thanks for help!
On Fri, Oct 12, 2012 at 02:20:55AM +0200, Olivier Cochard-Labb? wrote: O> I've done some tests with this net byte ordered(NBO) patch: O> - I've compiled 2 i386 images of BSD Router Project (current branch O> rev241418): One with the patch, and the other without the patch [1] O> - I've run my "full-features testing lab" under VirtualBox [2] using O> theses images. O> O> Here are the differences: O> - I can't SSH to and between the NBO-patched-FreeBSD; O> - Lot's of messages "in_cksum_skip: out of data by 28560/23460" on the O> non-patched FreeBSD (R2 and R3 on the diagram in [2]) O> - PPTP tunnel (net/mpd5) didn't works on the NBO-patched-FreeBSD; Not working SSH suprises me :( PPTP not, since not tested yet. Can you please apply attached patch to sys/i386/i386/in_cksum.c? It will print backtrace once the invariant failed. -- Totus tuus, Glebius.
Index: in_cksum.c =================================================================== --- in_cksum.c (revision 241405) +++ in_cksum.c (working copy) @@ -36,6 +36,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/mbuf.h> +#include <sys/kdb.h> #include <netinet/in.h> #include <netinet/in_systm.h> @@ -257,6 +258,7 @@ * reorder operations, this will generally take place in parallel with * other calculations. */ +static int once = 1; u_short in_cksum_skip(m, len, skip) struct mbuf *m; @@ -477,8 +479,13 @@ su.c[0] = *(char *)w; } - if (len) + if (len) { + if (once) { + kdb_backtrace(); + once = 0; + } printf("%s: out of data by %d\n", __func__, len); + } if (mlen == -1) { /* The last mbuf has odd # of bytes. Follow the standard (the odd byte is shifted left by 8 bits) */
_______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"