freebsd-nq/sys/i386
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 Pick up the selectors to use for various kernel segments from assym.s 2005-04-22 09:53:04 +00:00
bios - Consistently protect against NULL dereference. 2005-04-12 20:14:56 +00:00
compile
conf Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures, 2005-07-02 20:06:44 +00:00
cpufreq Add a driver for SMI-based SpeedStep. The hardware supports two frequency 2005-04-19 16:38:24 +00:00
i386 Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures, 2005-07-02 20:06:44 +00:00
ibcs2 Regenerate after addition of audit event type number to syscalls.master 2005-06-29 17:29:06 +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 Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures, 2005-07-02 20:06:44 +00:00
linux Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures, 2005-07-02 20:06:44 +00:00
pci Trust the settings programmed by the BIOS over what the $PIR says. 2005-04-14 18:25:09 +00:00
svr4 /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 22:18:23 +00:00
Makefile