From owner-freebsd-drivers@FreeBSD.ORG Wed Oct 12 17:59:06 2005 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37BAA16A41F for ; Wed, 12 Oct 2005 17:59:06 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 177EA43D67 for ; Wed, 12 Oct 2005 17:58:58 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so109881wxc for ; Wed, 12 Oct 2005 10:58:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=PYLJBnsAozj9TpyNrpfkOzJZ3gWpRoibMjblFRAk/YabpTL0JAi6zCJQotZHouWcZACTp6/38MYbPahOO598eoRk8PfGg3RxutAniBBydOpHfaiDKFPEd+4KwN3+1Fh1/O6zdt+ShPSJeOoaKATayiy5KBgXA3kVBRC/ua1t0Q4= Received: by 10.70.51.7 with SMTP id y7mr255307wxy; Wed, 12 Oct 2005 10:58:57 -0700 (PDT) Received: by 10.70.11.18 with HTTP; Wed, 12 Oct 2005 10:58:57 -0700 (PDT) Message-ID: <2b22951e0510121058u49cccf20kddd55352543c2304@mail.gmail.com> Date: Wed, 12 Oct 2005 10:58:57 -0700 From: "Cai, Quanqing" To: freebsd-current@freebsd.org, freebsd-drivers@freebsd.org, freebsd-firewire@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: kiyohara@kk.iij4u.or.jp Subject: Regarding kern/73852, please help to apply the patch thus we can close this bug. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 17:59:06 -0000 Hi guys, I noticed there is bug filed by KIYOHARA Takashi with a patch, link is here: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/73852, I tested if_fwip w= ith this patch, it works great for me. When we switch byte-order two times on i386, the byte-order will back to original. if you look at the files src/lib/libc/i386/net/ntohl.S and src/lib/libc/i386/net/htonl.S, you will find exact same code: movl 4(%esp),%eax bswap %eax ret This tells everything. So I hope somebody can apply the patch made by KIYOHARA Takashi and close this bug. Thanks Cai, Quanqing