Subject: Re: unaligned IP header
To: None <tech-net@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-net
Date: 04/24/2000 07:56:02
On Mon, Apr 24, 2000 at 09:10:39AM +0900, Atsushi Onoe wrote:

 > > Modified Files:
 > > 	syssrc/sys/dev/pcmcia: if_ray.c
 > > Log Message:
 > > Make sure the payload is aligned when using E2-over-802.11 encapsulation,
 > > as enabled by the LINK0 flag.  Fixes PR kern/9700.
 > 
 > PR kern/9700 should not be fixed by this change.
 > Though it would be better for driver to align IP packet for good
 > performance, IP layer including ipfilter must be robust against
 > unaligned IP header, IMO.

This discussion has been had before... Right now, we pretty much always
place this restriction on the network driver.  I guess the question is
where do you draw the line?

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>