Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2000 06:47:03 -0700 (PDT)
From:      Andrew Gallatin <gallatin@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net if_loop.c
Message-ID:  <200005261347.GAA86951@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005261347.GAA86951>