cvs commit: src/sys/amd64/include _types.h src/sys/i386/include _types.h src/sys/net if_bridge.c src/sys/netinet ip_var.h src/sys/netinet6 ip6_var.h

Andrew Thompson thompsa at
Sat Jul 2 23:13:32 GMT 2005

thompsa     2005-07-02 23:13:31 UTC

  FreeBSD src repository

  Modified files:
    sys/amd64/include    _types.h 
    sys/i386/include     _types.h 
    sys/net              if_bridge.c 
    sys/netinet          ip_var.h 
    sys/netinet6         ip6_var.h 
  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 (tier1) and ia64/ppc (tier2).
  This adds two new macros that check the alignment, these are compile time
  dependent on __NO_STRICT_ALIGNMENT which is set for i386 and amd64 where
  alignment isn't need so the cost is avoided.
  Move bridge_ip_checkbasic()/bridge_ip6_checkbasic() up so that the alignment
  is checked for ipfw and dummynet too.
  PR:             ia64/81284
  Obtained from:  NetBSD
  Approved by:    re (dwhite), mlaier (mentor)
  Revision  Changes    Path
  1.9       +2 -0      src/sys/amd64/include/_types.h
  1.12      +2 -0      src/sys/i386/include/_types.h
  1.10      +48 -27    src/sys/net/if_bridge.c
  1.95      +6 -0      src/sys/netinet/ip_var.h
  1.30      +6 -0      src/sys/netinet6/ip6_var.h

More information about the cvs-src mailing list