Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2006 07:06:35 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net ethernet.h
Message-ID:  <200612010706.kB176Zw6006712@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2006-12-01 07:06:35 UTC

  FreeBSD src repository

  Modified files:
    sys/net              ethernet.h 
  Log:
  Use CTASSERT to make sure:
          sizeof ether_header is 2 * ETHER_ADDR_LEN + 2 (14) bytes long
          sizeof ether_addr is ETHER_ADDR_LEN bytes long
  
  On arm, this shows that struct ether_addr needs to be __packed.
  
  The first condition muts be true for the bridging code to not dump core.
  The second one appears to be implicitly relied upon by wi (but many
  of the rids it sends down likely need __packed too to be safe) and
  maybe others.  It appears to not hurt anything.
  
  Revision  Changes    Path
  1.28      +6 -1      src/sys/net/ethernet.h



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