freebsd-nq/sys/amd64
Andrew Thompson 2fcb030ad5 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.

 IP_HDR_ALIGNED_P()
 IP6_HDR_ALIGNED_P()

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)
2005-07-02 23:13:31 +00:00
..
acpica MFi386: use the lapic timer for UP systems that are using the apic so that 2005-04-15 18:44:53 +00:00
amd64 Fix a buglet that was present in the ia64 code and that got inherited 2005-07-02 19:57:31 +00:00
compile Make space for compilations. 2002-07-06 02:49:07 +00:00
conf Sync i386->amd64. 2005-06-30 05:33:26 +00:00
ia32 Jumbo-commit to enhance 32 bit application support on 64 bit kernels. 2005-06-30 07:49:22 +00:00
include Check the alignment of the IP header before passing the packet up to the 2005-07-02 23:13:31 +00:00
isa MFi386: r1.221: use simple timecounter that is aware of irq0 being off. 2005-07-01 20:13:19 +00:00
linux32 Correct the amount of data to allocate in these local copies of 2005-06-24 17:41:28 +00:00
pci MFi386: whitespace, copyright header, etc updates 2005-01-21 05:56:41 +00:00
Makefile