From owner-cvs-all Fri May 26 6:47: 6 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D0B1537B5BE; Fri, 26 May 2000 06:47:03 -0700 (PDT) (envelope-from gallatin@FreeBSD.org) Received: (from gallatin@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA86951; Fri, 26 May 2000 06:47:03 -0700 (PDT) (envelope-from gallatin@FreeBSD.org) Message-Id: <200005261347.GAA86951@freefall.freebsd.org> From: Andrew Gallatin Date: Fri, 26 May 2000 06:47:03 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_loop.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG gallatin 2000/05/26 06:47:03 PDT Modified files: sys/net if_loop.c Log: Rather than checking for hlen causing misalignment, we should do the m_adj() and then check the resulting mbuf for misalignment, copying backwards to align the mbuf if required. This fixes a longstanding problem where an mbuf which would have been properly aligned after an m_adj() was being misaligned and causing an unaligned access trap in ip_input(). This bug only triggered when booting diskless. Reviewed by: dfr Revision Changes Path 1.49 +10 -8 src/sys/net/if_loop.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message