Subject: Re: unaligned IP header
To: Atsushi Onoe <>
From: None <>
List: tech-net
Date: 04/24/2000 11:23:45
>> 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.

	are you suggesting something like this in ip_input()?


if (((u_long)mtod(m, caddr_t)) % ALIGNBYTES) {
	/* unaligned ip header - force pullup */
	m = m_pullup_always(m, sizeof struct ip);	/*always pullup*/