From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqAfb-00035F-Dy for qemu-devel@nongnu.org; Tue, 01 Jan 2013 17:50:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqAfa-0003XR-4V for qemu-devel@nongnu.org; Tue, 01 Jan 2013 17:50:51 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:50270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqAfZ-0003XE-K4 for qemu-devel@nongnu.org; Tue, 01 Jan 2013 17:50:49 -0500 Received: by mail-la0-f42.google.com with SMTP id fe20so5307894lab.15 for ; Tue, 01 Jan 2013 14:50:48 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1357078354.31530.1.camel@Quad> References: <1356982680-12436-1-git-send-email-laurent@vivier.eu> <1356982680-12436-3-git-send-email-laurent@vivier.eu> <1356992395.3199.25.camel@Quad> <1357061254.3025.9.camel@Quad> <1357065466.3025.14.camel@Quad> <1357078354.31530.1.camel@Quad> From: Peter Maydell Date: Tue, 1 Jan 2013 22:50:28 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] linux-user: SOCK_PACKET uses network endian to encode protocol in socket() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Riku Voipio , qemu-devel@nongnu.org On 1 January 2013 22:12, Laurent Vivier wrote: > Le mardi 01 janvier 2013 =C3=A0 19:45 +0000, Peter Maydell a =C3=A9crit : >> I would encourage you to write some simple test programs >> and check them using strace (both of the native program and >> of qemu running the program). > > OK, I will... but I think we will fall back to my original patch ;-) You'll need to provide test programs which work with that and fail with the simple tswap16() approach first. -- PMM