cvs commit: src/sys/net bridge.c

Andrew Thompson thompsa at FreeBSD.org
Sun Jul 3 18:24:04 GMT 2005


thompsa     2005-07-03 18:24:03 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bridge.c 
  Log:
  Check the alignment of the IP header before passing the packet up to the
  packet filter. This would cause a panic on architectures that require strict
  alignment such as sparc64, ia64 and ppc.
  
  This uses the code block from if_bridge and the newly added macro
  IP_HDR_ALIGNED_P().
  
  This /might/ be a temporary messure before all NIC drivers are educated
  to align the header themself.
  
  PR:             ia64/81284
  Obtained from:  NetBSD (if_bridge)
  Approved by:    re (dwhite), mlaier (mentor)
  
  Revision  Changes    Path
  1.93      +13 -0     src/sys/net/bridge.c


More information about the cvs-src mailing list